fix(git): pre-push rejects merging main into feature branches after #1282 Co-authored-by #1287
No reviewers
Labels
No labels
agent:fix_bugfix
agent:fix_conflicts
agent:fix_security
agent:gap_analysis
agent:implement
agent:implement
agent:implement
agent:open_issues
agent:ready
agent:research
agent:security_audit
agent:verify
architecture
backend
blocker:hybrid
blocker:launch
blocker:limit-orders
blocker:v2
block:log_only
block:security
bug
ci
contracts
correctness
deploy
dev
devops
docs
documentation
duplicate
e2e
enhancement
epic
feature
frontend
functional-completion
gas
good first issue
governance
help wanted
high-risk
hooks
hybrid
indexer
infra
infrastructure
integrators
invalid
launch-blocker
limit-orders
localnet
localterra
low priority
missing-implementation
needs-design
ops
performance
priority
high
priority
medium
product
qa
QA
question
ready
ready
research
scripts
security
security-hardening
smartcontracts
tech-debt
testing
ux
UX
v2
verification
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
code/cl8y-dex-terraclassic!1287
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "issue/1286"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fixes #1287
Fixes #1286
Summary
pre-pushscanned every commit in the push range, including commits already onorigin/main. After #1282,ad2d2493on main carries aCo-authored-bytrailer; mergingorigin/maininto a PR branch then pushing re-scanned that commit and blocked the push.Skip policy validation for commits already reachable from
origin/main(via the push remote’smain). New branch-only violations still fail.Acceptance criteria
git merge origin/mainon a feature branch plusgit pushsucceeds when the only policy-violating commit is already onorigin/main.Validation
make verify-issue-1287(alias formake test-commit-msg-hook, includesscripts/test-pre-push-commit-policy.sh)Gaps
verify-commit-messages.shstill scans explicit ranges and is unchanged (not used for push-range semantics).drain skip: no occupying job for rebase/fix-pr/CI-wait; remaining continue
cl8y-agent-control: queued
implementjoba3e8bcb5-39fc-44dd-a26a-88f9d58ca290(not executed; no Hetzner VM).Merged as PR #1287 onto origin/main.
Follow-up:
make verify-issue-1287failed on the stacked main because a leftoverecho FAIL; exit 1survived the #1291 merge intoscripts/test-commit-msg-hook.sh. Fixed in PR #1301. Combined pre-push keeps origin/main skip plus--not --remotesfor new branches.Leftover ops: #1300