From aa1012e7f8157f51362577deb7610ee2b4bd29e0 Mon Sep 17 00:00:00 2001 From: Shrikant Sharat Date: Mon, 11 Jun 2012 18:35:56 +0530 Subject: [PATCH] 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. --- antigen.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/antigen.zsh b/antigen.zsh index 20a97de..35911ed 100644 --- a/antigen.zsh +++ b/antigen.zsh @@ -113,7 +113,7 @@ antigen-update () { if [[ ! -d $clone_dir ]]; then git clone "$url" "$clone_dir" elif $update; then - git --git-dir "$clone_dir/.git" pull + git --git-dir "$clone_dir/.git" --work-tree "$clone_dir" pull fi } -- 2.0.0