git sync
while on non-detached main
causes a git checkout main
for every stack
#1155
Labels
bug
Something isn't working
Description of the bug
This causes
git sync
s to be significantly slower, especially ifgit checkout main
takes a while. This isn't usually the case, unless you're in a huge monorepo.Good (checked out at a non-main commit, or detached at main):
Bad (checked out non-detached main):
I also see working copy snapshots being created - not too sure if that's related.
To work around this,
git switch --detach & git sync
instead.Expected behavior
git sync
on main is fast in monorepos.Actual behavior
git sync
on main is slow in monorepos.Version of
rustc
No response
Automated bug report
No response
Version of
git-branchless
git-branchless-opts 0.7.0 (
~/.cargo/git/checkouts
shows fbd9585)Version of
git
No response
The text was updated successfully, but these errors were encountered: