fix(git): pre-push rejects merging main into feature branches after #1282 Co-authored-by #1286
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#1286
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Summary
ad2d2493onmain(ADR 0006, from PR #1282) has aCo-authored-by: Cursor <cursoragent@cursor.com>trailer. Local.githooks/pre-pushscansremote_oid..local_oidof the feature branch. Mergingorigin/maininto a PR branch then pushing re-introduces that commit in the push range, so the hook rejects the push even though the commit is already onmain.This blocked client-side PR updates during the #1270/#1281/#1278 land. Workaround used: Forgejo
POST /pulls/{n}/update(server-side merge ofmaininto the head). Do not rewritemain. Do not--no-verify.Remaining
origin/main.ad2d2493onmain(no history rewrite).Acceptance criteria
git merge origin/mainon a feature branch plusgit pushsucceeds when the only policy-violating commit is already onorigin/main.cl8y-agent-control: queued
implementjoba33608ca-c230-4530-b55e-4ec04d84eb7d(not executed; no Hetzner VM).Fixed via PR #1287 (pre-push skips commits already on origin/main). Stacked with later PRs' unpublished-commit range. Hook verify residue from that stack is PR #1301.
Leftover ops: #1300