-
Notifications
You must be signed in to change notification settings - Fork 280
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
Antigen doesn't work with plugins whose repositories don't have a 'master' branch #717
Comments
@FredDeschenes This is surely late, but you can specify a branch or tag you want to clone with Example: |
Would it make sense for antigen to just not assume the default branch of the repo is called |
FTR: Commonly used plugins from @unixorn have moved to main |
FWIW, you can detect the default branch with
|
Until zsh-users/antigen#717 gets fixed, the branch needs to be specified when this is not `master`. Signed-off-by: Gerard Bosch <gerard.bosch@gmail.com>
Would be really nice if at least we could have by default |
Yes please! Especially since that's the default on modern git and github |
I think it's best to use |
Antigen doesn't cope when the default branch of a repo is not named `master` - see zsh-users/antigen#717 Update the install instructions in the readme accordingly. Signed-off-by: Joe Block <jpb@unixorn.net>
There is also a problem with already installed bundles. If you change the branch from There is a way to get a default branch in git repo: |
Description
Title pretty much says it all. Antigen seems to rely on the fact that a repository has a 'master' branch and with Github's new default repository setup that uses 'main' instead (or any repository that changed their 'master' branch to 'main') installing/updating those plugins fails.
Steps to reproduce
Minimal steps to reproduce this behavior. Example:
Expected behavior:
Software version
antigen version
Antigen develop (d1dd78b)
Revision date: 2018-01-15 14:37:21 -0300
zsh --version
zsh 5.8 (x86_64-ubuntu-linux-gnu)
uname -a
Linux poste-0948 5.4.0-51-generic Use user-provided version of zsh #56-Ubuntu SMP Mon Oct 5 14:28:49 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
Configuration
.antigenrc
Not used
.zshrc
Entire file is here, but line 69 is where my theme that causes the issue is set.
More information
As a workaround you can manually clone/update your plugins in $ANTIGEN_BUNDLES (Antigen still creates the directory structure, just doesn't perform the clone/pull).
The text was updated successfully, but these errors were encountered: