antidote icon indicating copy to clipboard operation
antidote copied to clipboard

Changing the branch annotation does not change the branch on an already cloned repo

Open mattmc3 opened this issue 3 years ago • 3 comments

If you go from antidote bundle zsh-users/zsh-autosuggestions branch:develop to antidote bundle zsh-users/zsh-autosuggestions, your repo's branch does not change.

mattmc3 avatar Mar 07 '22 16:03 mattmc3

Note: I think antibody has this bug too. The solution is probably to clone to a different directory for each branch since you could (weirdly) bundle the same repo multiple times with different branches.

mattmc3 avatar Mar 09 '22 16:03 mattmc3

This is a tricky bug because you need to get the default branch on every repo. Something like this: dfltbr=$(git symbolic-ref --short refs/remotes/origin/HEAD); echo ${dfltbr#*/}

mattmc3 avatar Sep 01 '22 02:09 mattmc3