Commit aa1012e7f8157f51362577deb7610ee2b4bd29e0

Authored by Shrikant Sharat
1 parent 8f0e534f19

Fix #4. Updated files being placed in pwd.

When running `antigen-update` and there are changes to be pulled, the changed
files are being placed in the current directory, where `antigen-update` is run.
This is because of not setting the `--work-tree` for the `git pull` command.

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

... ... @@ -113,7 +113,7 @@ antigen-update () {
113 113 if [[ ! -d $clone_dir ]]; then
114 114 git clone "$url" "$clone_dir"
115 115 elif $update; then
116   - git --git-dir "$clone_dir/.git" pull
  116 + git --git-dir "$clone_dir/.git" --work-tree "$clone_dir" pull
117 117 fi
118 118  
119 119 }