Description of the bug
When I use git submit --forge github --create, the first invocation only creates a PR with basic details (just a title, based off main).
The second time I run git submit --forge github, this sets the PR's base branch, and adds the stack details to the description.
> git branchless --version
git-branchless-opts 0.10.0
Expected behavior
Correct on first shot
Actual behavior
Needs second pass
Version of rustc
No response
Automated bug report
Software version
git-branchless 0.10.0
Operating system
macOS 15.4.1 (Darwin 24.4.0)
Command-line
/Users/dan/.nix-profile/bin/git-branchless bug-report
Environment variables
SHELL=/bin/zsh
EDITOR=<not set>
Git version
> git version
git version 2.49.0
Hooks
Hooks directory: /Users/dan/nobie/.git/hooks
Show 7 hooks
Hook post-applypatch
#!/bin/sh
## START BRANCHLESS CONFIG
git branchless hook post-applypatch "$@"
## END BRANCHLESS CONFIG
Hook post-checkout
#!/bin/sh
## START BRANCHLESS CONFIG
git branchless hook post-checkout "$@"
## END BRANCHLESS CONFIG
Hook post-commit
#!/bin/sh
## START BRANCHLESS CONFIG
git branchless hook post-commit "$@"
## END BRANCHLESS CONFIG
Hook post-merge
#!/bin/sh
## START BRANCHLESS CONFIG
git branchless hook post-merge "$@"
## END BRANCHLESS CONFIG
Hook post-rewrite
#!/bin/sh
## START BRANCHLESS CONFIG
git branchless hook post-rewrite "$@"
## END BRANCHLESS CONFIG
Hook pre-auto-gc
#!/bin/sh
## START BRANCHLESS CONFIG
git branchless hook pre-auto-gc "$@"
## END BRANCHLESS CONFIG
Hook reference-transaction
#!/bin/sh
## START BRANCHLESS CONFIG
# Avoid canceling the reference transaction in the case that `branchless` fails
# for whatever reason.
git branchless hook reference-transaction "$@" || (
echo 'branchless: Failed to process reference transaction!'
echo 'branchless: Some events (e.g. branch updates) may have been lost.'
echo 'branchless: This is a bug. Please report it.'
)
## END BRANCHLESS CONFIG
Events
Show 5 events
Event ID: 53, transaction ID: 72 (message: submit)
RefUpdateEvent { timestamp: 1747158728.97455, event_tx_id: Id(72), ref_name: ReferenceName("refs/remotes/redacted-ref-0"), old_oid: 0000000000000000000000000000000000000000, new_oid: 4b94d70d0f00d6a562042ec38fc599e417dcc4e7, message: None }
:
O 0b3801e 15h (main) xxxxxxx xxxxxxxxxx xxxx xxxxxxxx xxxxxxxxx
|
o b850e36 2h (redacted-ref-1) xxxxxx xxxxxxxxx xx xx xxxxxxxxx xxx xxxxx
|
o 6cdc824 2h (redacted-ref-2) xxxxxx xxxx xxxxxxx xxx xxxxxxxx xxxxxxx
|
o 7eebe8a 2h (redacted-ref-3) xxx xxxx xxxxxxxx xxxxxxxxx xxxxxx
|
@ 4b94d70 9m (redacted-ref-4) xxx xx xxxx xxxxx xx xxxxx xxxxxxxxxx
Event ID: 52, transaction ID: 71 (message: submit)
RefUpdateEvent { timestamp: 1747158726.445042, event_tx_id: Id(71), ref_name: ReferenceName("refs/remotes/redacted-ref-5"), old_oid: 0000000000000000000000000000000000000000, new_oid: 7eebe8a652548fed722b55435404249eb7a5ee7c, message: None }
:
O 0b3801e 15h (main) xxxxxxx xxxxxxxxxx xxxx xxxxxxxx xxxxxxxxx
|
o b850e36 2h (redacted-ref-1) xxxxxx xxxxxxxxx xx xx xxxxxxxxx xxx xxxxx
|
o 6cdc824 2h (redacted-ref-2) xxxxxx xxxx xxxxxxx xxx xxxxxxxx xxxxxxx
|
o 7eebe8a 2h (redacted-ref-3) xxx xxxx xxxxxxxx xxxxxxxxx xxxxxx
|
@ 4b94d70 9m (redacted-ref-4) xxx xx xxxx xxxxx xx xxxxx xxxxxxxxxx
Event ID: 51, transaction ID: 70 (message: submit)
RefUpdateEvent { timestamp: 1747158723.647628, event_tx_id: Id(70), ref_name: ReferenceName("refs/remotes/redacted-ref-6"), old_oid: 0000000000000000000000000000000000000000, new_oid: 6cdc824ebffd3401ef68676f8086656df98a3b64, message: None }
:
O 0b3801e 15h (main) xxxxxxx xxxxxxxxxx xxxx xxxxxxxx xxxxxxxxx
|
o b850e36 2h (redacted-ref-1) xxxxxx xxxxxxxxx xx xx xxxxxxxxx xxx xxxxx
|
o 6cdc824 2h (redacted-ref-2) xxxxxx xxxx xxxxxxx xxx xxxxxxxx xxxxxxx
|
o 7eebe8a 2h (redacted-ref-3) xxx xxxx xxxxxxxx xxxxxxxxx xxxxxx
|
@ 4b94d70 9m (redacted-ref-4) xxx xx xxxx xxxxx xx xxxxx xxxxxxxxxx
Event ID: 50, transaction ID: 69 (message: submit)
RefUpdateEvent { timestamp: 1747158720.858502, event_tx_id: Id(69), ref_name: ReferenceName("refs/remotes/redacted-ref-7"), old_oid: 0000000000000000000000000000000000000000, new_oid: b850e3621ce38478ed8d23cdc8abac916ac79ae9, message: None }
:
O 0b3801e 15h (main) xxxxxxx xxxxxxxxxx xxxx xxxxxxxx xxxxxxxxx
|
o b850e36 2h (redacted-ref-1) xxxxxx xxxxxxxxx xx xx xxxxxxxxx xxx xxxxx
|
o 6cdc824 2h (redacted-ref-2) xxxxxx xxxx xxxxxxx xxx xxxxxxxx xxxxxxx
|
o 7eebe8a 2h (redacted-ref-3) xxx xxxx xxxxxxxx xxxxxxxxx xxxxxx
|
@ 4b94d70 9m (redacted-ref-4) xxx xx xxxx xxxxx xx xxxxx xxxxxxxxxx
Event ID: 49, transaction ID: 67 (message: submit unsubmitted commits)
RefUpdateEvent { timestamp: 1747158693.251326, event_tx_id: Id(67), ref_name: ReferenceName("refs/remotes/redacted-ref-0"), old_oid: 0000000000000000000000000000000000000000, new_oid: 4b94d70d0f00d6a562042ec38fc599e417dcc4e7, message: None }
:
O 0b3801e 15h (main) xxxxxxx xxxxxxxxxx xxxx xxxxxxxx xxxxxxxxx
|
o b850e36 2h (redacted-ref-1) xxxxxx xxxxxxxxx xx xx xxxxxxxxx xxx xxxxx
|
o 6cdc824 2h (redacted-ref-2) xxxxxx xxxx xxxxxxx xxx xxxxxxxx xxxxxxx
|
o 7eebe8a 2h (redacted-ref-3) xxx xxxx xxxxxxxx xxxxxxxxx xxxxxx
|
@ 4b94d70 9m (redacted-ref-4) xxx xx xxxx xxxxx xx xxxxx xxxxxxxxxx
Version of git-branchless
No response
Version of git
No response
Description of the bug
When I use
git submit --forge github --create, the first invocation only creates a PR with basic details (just a title, based off main).The second time I run
git submit --forge github, this sets the PR's base branch, and adds the stack details to the description.Expected behavior
Correct on first shot
Actual behavior
Needs second pass
Version of
rustcNo response
Automated bug report
Software version
git-branchless 0.10.0
Operating system
macOS 15.4.1 (Darwin 24.4.0)
Command-line
Environment variables
Git version
Hooks
Hooks directory:
/Users/dan/nobie/.git/hooksShow 7 hooks
Hook
post-applypatchHook
post-checkoutHook
post-commitHook
post-mergeHook
post-rewriteHook
pre-auto-gcHook
reference-transactionEvents
Show 5 events
Event ID: 53, transaction ID: 72 (message: submit)
RefUpdateEvent { timestamp: 1747158728.97455, event_tx_id: Id(72), ref_name: ReferenceName("refs/remotes/redacted-ref-0"), old_oid: 0000000000000000000000000000000000000000, new_oid: 4b94d70d0f00d6a562042ec38fc599e417dcc4e7, message: None }Event ID: 52, transaction ID: 71 (message: submit)
RefUpdateEvent { timestamp: 1747158726.445042, event_tx_id: Id(71), ref_name: ReferenceName("refs/remotes/redacted-ref-5"), old_oid: 0000000000000000000000000000000000000000, new_oid: 7eebe8a652548fed722b55435404249eb7a5ee7c, message: None }Event ID: 51, transaction ID: 70 (message: submit)
RefUpdateEvent { timestamp: 1747158723.647628, event_tx_id: Id(70), ref_name: ReferenceName("refs/remotes/redacted-ref-6"), old_oid: 0000000000000000000000000000000000000000, new_oid: 6cdc824ebffd3401ef68676f8086656df98a3b64, message: None }Event ID: 50, transaction ID: 69 (message: submit)
RefUpdateEvent { timestamp: 1747158720.858502, event_tx_id: Id(69), ref_name: ReferenceName("refs/remotes/redacted-ref-7"), old_oid: 0000000000000000000000000000000000000000, new_oid: b850e3621ce38478ed8d23cdc8abac916ac79ae9, message: None }Event ID: 49, transaction ID: 67 (message: submit unsubmitted commits)
RefUpdateEvent { timestamp: 1747158693.251326, event_tx_id: Id(67), ref_name: ReferenceName("refs/remotes/redacted-ref-0"), old_oid: 0000000000000000000000000000000000000000, new_oid: 4b94d70d0f00d6a562042ec38fc599e417dcc4e7, message: None }Version of
git-branchlessNo response
Version of
gitNo response