git submit --create
doesn't work if all of the branches already exist on the remote
#557
Labels
bug
Something isn't working
Description of the bug
It looks like when all of the branches already exist on the remote, the
git submit --create
command attempts to push an empty list of branches, which results in trying to pushhead
, which is undesired, and breaks if you're not on a branch.Expected behavior
The existing branches are pushed, and that is all
Actual behavior
The existing branches are pushed, but there is then an error:
Version of
rustc
rustc 1.62.1 (e092d0b6b 2022-07-16)
Automated bug report
Software version
git-branchless 0.4.0 (3c829f6)
Operating system
macOS 12.4 (Darwin 21.5.0)
Command-line
Environment variables
Git version
Hooks
Show 6 hooks
Hook
post-commit
Hook
post-merge
Hook
post-rewrite
Hook
post-checkout
Hook
pre-auto-gc
Hook
reference-transaction
Events
Show 5 events
Event ID: 23157, transaction ID: 20014 (message: submit)
RefUpdateEvent { timestamp: 1663858887.713853, event_tx_id: EventTransactionId(20014), ref_name: ReferenceName("refs/remotes/redacted-ref-0"), old_oid: 0000000000000000000000000000000000000000, new_oid: 72f2d509d5ed75dc356e983f78c27811d5ce5efe, message: None }
RefUpdateEvent { timestamp: 1663858887.77097, event_tx_id: EventTransactionId(20014), ref_name: ReferenceName("refs/remotes/redacted-ref-1"), old_oid: 0000000000000000000000000000000000000000, new_oid: d3ed55a157239401c9c88bff74c773e99ad3d764, message: None }
RefUpdateEvent { timestamp: 1663858887.838568, event_tx_id: EventTransactionId(20014), ref_name: ReferenceName("refs/remotes/redacted-ref-2"), old_oid: 0000000000000000000000000000000000000000, new_oid: 2ef0dbc392c0a782f6e90f84a36de5fc7106d71f, message: None }
RefUpdateEvent { timestamp: 1663858887.893852, event_tx_id: EventTransactionId(20014), ref_name: ReferenceName("refs/remotes/redacted-ref-3"), old_oid: 9841c5ce5de461959a5134ee099bc9632baaac1e, new_oid: 9841c5ce5de461959a5134ee099bc9632baaac1e, message: None }
Event ID: 23156, transaction ID: 20013 (message: reference-transaction)
RefUpdateEvent { timestamp: 1663858874.194028, event_tx_id: EventTransactionId(20013), ref_name: ReferenceName("refs/remotes/redacted-ref-2"), old_oid: 0000000000000000000000000000000000000000, new_oid: 2ef0dbc392c0a782f6e90f84a36de5fc7106d71f, message: None }
Event ID: 23155, transaction ID: 20012 (message: reference-transaction)
RefUpdateEvent { timestamp: 1663858874.119993, event_tx_id: EventTransactionId(20012), ref_name: ReferenceName("refs/remotes/redacted-ref-1"), old_oid: 0000000000000000000000000000000000000000, new_oid: d3ed55a157239401c9c88bff74c773e99ad3d764, message: None }
Event ID: 23154, transaction ID: 20011 (message: reference-transaction)
RefUpdateEvent { timestamp: 1663858874.072214, event_tx_id: EventTransactionId(20011), ref_name: ReferenceName("refs/remotes/redacted-ref-0"), old_oid: 0000000000000000000000000000000000000000, new_oid: 72f2d509d5ed75dc356e983f78c27811d5ce5efe, message: None }
Event ID: 23153, transaction ID: 20010 (message: reference-transaction)
RefUpdateEvent { timestamp: 1663858730.142032, event_tx_id: EventTransactionId(20010), ref_name: ReferenceName("refs/remotes/redacted-ref-28"), old_oid: 0000000000000000000000000000000000000000, new_oid: 0000000000000000000000000000000000000000, message: None }
Version of
git-branchless
No response
Version of
git
No response
The text was updated successfully, but these errors were encountered: