summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2017-01-23 12:10:43 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2017-01-23 12:10:43 +0900
commite1291aa6d2c49e563cf40b0bce2e34d30931cbb3 (patch)
tree981667990e1632e34020d4041cb17140477cca0a /src
parentbb26f32ac7353e8fe0e9624326beda082faa5374 (diff)
Fix make deps to see the right git dir
Diffstat (limited to 'src')
-rwxr-xr-xsrc/deps1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/deps b/src/deps
index f384dcf1..1d8cab7f 100755
--- a/src/deps
+++ b/src/deps
@@ -7,6 +7,7 @@ fi
reset() (
cd "$GOPATH/src/$1"
+ export GIT_DIR="$(pwd)/.git"
[ "$(git rev-parse HEAD)" = "$2" ] ||
(git fetch && git reset --hard "$2")
)