diff options
author | Ramon Fernandez <ramon@mongodb.com> | 2016-03-10 14:38:36 -0500 |
---|---|---|
committer | Ramon Fernandez <ramon@mongodb.com> | 2016-03-10 14:38:36 -0500 |
commit | 374b2743484c51bebb7bc0a7428a49a9c17cedc5 (patch) | |
tree | 90015cc22c67e9b17c567a510d031cfd644ed9f3 /buildscripts/install-hooks | |
parent | 36a86d9a57ce140ac8638f0a76bad9f0c5a2d2ba (diff) | |
download | mongo-374b2743484c51bebb7bc0a7428a49a9c17cedc5.tar.gz |
Hooks directory does not match location used by pre-push hook
Diffstat (limited to 'buildscripts/install-hooks')
-rwxr-xr-x | buildscripts/install-hooks | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/buildscripts/install-hooks b/buildscripts/install-hooks index 74b0c8c432d..5389bc615e1 100755 --- a/buildscripts/install-hooks +++ b/buildscripts/install-hooks @@ -54,7 +54,7 @@ cat > $pre_push_hook <<'EOF' quiet=${GITHOOKS_QUIET:-""} origin="`git config remote.origin.url`" -repo="`basename $origin`" +repo="`basename -s .git $origin`" hooksdir="$HOME/.githooks/$repo/pre-push" if [ ! -d "$hooksdir" ]; then |