Skip to content
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

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

Open
mattmc3 opened this issue Mar 7, 2022 · 2 comments
Labels
bug Something isn't working

Comments

@mattmc3
Copy link
Owner

mattmc3 commented Mar 7, 2022

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 mattmc3 added enhancement New feature or request bug Something isn't working and removed enhancement New feature or request labels Mar 7, 2022
@mattmc3
Copy link
Owner Author

mattmc3 commented Mar 9, 2022

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
Copy link
Owner Author

mattmc3 commented Sep 1, 2022

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#*/}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant