From 0947512ff63c7daaa4381580745564f56371e591 Mon Sep 17 00:00:00 2001 From: Thulinma Date: Sun, 26 Aug 2012 21:18:58 +0200 Subject: [PATCH] Fixed hook creator to also work when pulling. --- createhooks.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/createhooks.sh b/createhooks.sh index 067aafa8..d03396a2 100755 --- a/createhooks.sh +++ b/createhooks.sh @@ -2,7 +2,9 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" echo -e "#!/bin/bash\n[ -f configure ] && touch configure\n[ -f configure.ac ] && touch configure.ac" > $DIR/.git/hooks/post-commit echo -e "#!/bin/bash\n[ -f configure ] && touch configure\n[ -f configure.ac ] && touch configure.ac" > $DIR/.git/hooks/post-checkout +echo -e "#!/bin/bash\n[ -f configure ] && touch configure\n[ -f configure.ac ] && touch configure.ac" > $DIR/.git/hooks/post-receive chmod +x $DIR/.git/hooks/post-commit chmod +x $DIR/.git/hooks/post-checkout +chmod +x $DIR/.git/hooks/post-receive echo "Done! The version number should now auto-update whenever you commit or checkout."