akhayyat/dotfiles

install.sh: fix repository update commands

Commit 6f4e9a961550 · Ahmad Khayyat · 2019-11-20 14:14 +0300

Changeset
6f4e9a961550d8d671d779ec7d95431d51c91abd

View source at this commit

Comments

No comments yet.

Log in to comment

Diff

diff --git a/install.sh b/install.sh
--- a/install.sh
+++ b/install.sh
@@ -95,8 +95,8 @@
     then
         hg clone $rev $repo $dir
     else
-        hg pull $rev
-        hg update $rev
+        hg -R $dir pull $rev
+        hg -R $dir update $rev
     fi
 }
 
@@ -109,7 +109,7 @@
     then
         git clone $branch $repo $dir
     else
-        git pull --ff-only $repo $ref
+        git -C $dir pull --ff-only $repo $ref
     fi
 }