fix(push): create the remote bookmark on first push of a new branch #184
No reviewers
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
gmackie/ForgeGraph!184
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/push-allow-new"
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?
What
forge pushnow creates the remote bookmark on the first push of a new branch (item #4 of the forge-CLI DX field report).Why
It shelled out to
jj git pushwithout--allow-new, so a fresh branch failed with "Refusing to create new remote bookmark. Nothing changed." — breaking the documented changeset -> push -> pr flow on new branches.Change
The jj push path adds
--allow-new(unless the caller already passed it), via a purejjPushArgshelper (unit-tested). Ryu/git paths unchanged. (jj deprecation-warns the flag but it still works; a brand-new local bookmark can't be pre-tracked.)Verification
Go
build/vetgreen;TestJJPushArgs2/2.Field report: item #4.