zsh-users / antigen

The plugin manager for zsh.
http://antigen.sharats.me
MIT License
8.09k stars 280 forks source link

Clones two copies of the same repo for some plugins #33

Closed tubbo closed 12 years ago

tubbo commented 12 years ago

When I run the latest Antigen, I get the following output:

♬  reload
cd ~/.dots && git pull origin master
From github.com:tubbo/dots
 * branch            master     -> FETCH_HEAD
Already up-to-date.
cd /Users/tom/.antigen/repos/https-COLON--SLASH--SLASH-github.com-SLASH-kennethreitz-SLASH-autoenv && git pull origin master
From https://github.com/kennethreitz/autoenv
 * branch            master     -> FETCH_HEAD
Already up-to-date.
cd /Users/tom/.antigen/repos/https-COLON--SLASH--SLASH-github.com-SLASH-kennethreitz-SLASH-autoenv.git && git pull origin master
From https://github.com/kennethreitz/autoenv
 * branch            master     -> FETCH_HEAD
Already up-to-date.
cd /Users/tom/.antigen/repos/https-COLON--SLASH--SLASH-github.com-SLASH-robbyrussell-SLASH-oh-my-zsh && git pull origin master
From https://github.com/robbyrussell/oh-my-zsh
 * branch            master     -> FETCH_HEAD
Already up-to-date.
cd /Users/tom/.antigen/repos/https-COLON--SLASH--SLASH-github.com-SLASH-robbyrussell-SLASH-oh-my-zsh.git && git pull origin master
From https://github.com/robbyrussell/oh-my-zsh
 * branch            master     -> FETCH_HEAD
Already up-to-date.

Why is each repo being cloned twice?

Here's what my Antigen bundle file looks like (it's being loaded by reload):


# Load the plugin architecture
source "$ZSH/vendor/antigen/antigen.zsh"

# Set up the plugin architecture
antigen-lib

# Bare Oh My ZSH plugins
antigen-bundle cap

# Local modifications to OMZ plugins
antigen-bundle $HOME/.dots/lib/plugins/aws
antigen-bundle $HOME/.dots/lib/plugins/bundler
antigen-bundle $HOME/.dots/lib/plugins/git
antigen-bundle $HOME/.dots/lib/plugins/git-process
antigen-bundle $HOME/.dots/lib/plugins/knife
antigen-bundle $HOME/.dots/lib/plugins/macvim
antigen-bundle $HOME/.dots/lib/plugins/osx
antigen-bundle $HOME/.dots/lib/plugins/rails3
antigen-bundle $HOME/.dots/lib/plugins/ruby

# From alternative sources
antigen-bundle zsh-users/zsh-syntax-highlighting
antigen-bundle kennethreitz/autoenv

# Apply loaded plugins to the environment
antigen-apply
sharat87 commented 12 years ago

Not entirely sure on this, but I think antigen is only aware of and using only one of those two clones (the one with .git in the end). The others must have been lying from a previous version of antigen. Remove/move them out of the .antigen/repos directory and that shouldn't change anything at all w.r.t. antigen. Let me know if it works out.

That aside, is there any reason you aren't using antigen-update, instead of pulling each and every clone yourself? Just curious.

tubbo commented 12 years ago

@sharat87 That did it! I upgraded from an earlier version of Antigen and it looks like some improvements were made. I'll be sure to keep this vendored/submoduled in my shell configuration repo in the future, so I can get updates like that. Thanks!

sharat87 commented 12 years ago

No problem. Glad you have it working.