Fixed hook creator to also work when pulling.
This commit is contained in:
parent
a15ea64e4e
commit
0947512ff6
1 changed files with 2 additions and 0 deletions
|
@ -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."
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue