-
-
Notifications
You must be signed in to change notification settings - Fork 91
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Main branch deleted after git sync
#476
Comments
Hi @mikepqr, thanks for reporting! I was able to reproduce the issue and put up a fix in #485. Can you test it out (instructions) and confirm that it resolves the bug? |
Awesome! Happy to test but I'm afraid I need a little basic cargo support to unblock:
|
@mikepqr sorry about that, the error message is quite bad here. You need to update your version of Rust/Cargo. |
By the way, as a workaround, you can try committing to branches other than |
Thanks! I've upgraded to #485 and will let you know how I get on. |
git sync
Closed in #593. |
Description of the bug
I get an error (warning?) that the main branch could not be found every time I
git sync
after landing a change. I'm left on a detached HEAD (possibly this is expected?) andgit sl
fails (definitely not expected!). If I then explicitly checkout master I get back to a working state.Expected behavior
git sync
andgit sl
work without an error.Actual behavior
Version of
rustc
rustc 1.59.0
Automated bug report
Environment variables
Git version
Events
Show 5 events
Event ID: 451, transaction ID: 475
RefUpdateEvent { timestamp: 1658965620.970999, event_tx_id: EventTransactionId(475), ref_name: "HEAD", old_oid: 10cacf4f994e837bf97e25f9d99760f9c2be49e9, new_oid: 10cacf4f994e837bf97e25f9d99760f9c2be49e9, message: None }
Event ID: 449, transaction ID: 474
RewriteEvent { timestamp: 1658965570.51185, event_tx_id: EventTransactionId(474), old_commit_oid: a618c8d3e49a48df84c072281958c4059ce820d6, new_commit_oid: 0000000000000000000000000000000000000000 }
RefUpdateEvent { timestamp: 1658965596.124385, event_tx_id: EventTransactionId(474), ref_name: "HEAD", old_oid: a618c8d3e49a48df84c072281958c4059ce820d6, new_oid: 10cacf4f994e837bf97e25f9d99760f9c2be49e9, message: None }
Event ID: 448, transaction ID: 472
RewriteEvent { timestamp: 1658944229.534632, event_tx_id: EventTransactionId(472), old_commit_oid: 2b250d3c4fd0fcf156cc8eaf5f4b95814c9fcc22, new_commit_oid: a618c8d3e49a48df84c072281958c4059ce820d6 }
Event ID: 447, transaction ID: 471
CommitEvent { timestamp: 1658944228.0, event_tx_id: EventTransactionId(471), commit_oid: NonZeroOid(a618c8d3e49a48df84c072281958c4059ce820d6) }
Event ID: 446, transaction ID: 470
CommitEvent { timestamp: 1658943942.0, event_tx_id: EventTransactionId(470), commit_oid: NonZeroOid(2b250d3c4fd0fcf156cc8eaf5f4b95814c9fcc22) }
Version of
git-branchless
No response
Version of
git
No response
The text was updated successfully, but these errors were encountered: