Fix make deps to see the right git dir

This commit is contained in:
Junegunn Choi 2017-01-23 12:10:43 +09:00
parent bb26f32ac7
commit e1291aa6d2
No known key found for this signature in database
GPG Key ID: 254BC280FEF9C627

View File

@ -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")
)