1
0
Fork 0
mirror of https://git.ludikovsky.name/git/fugitive.git synced 2024-05-18 22:45:31 +02:00

rewrite instead of append for pre- hooks

This commit is contained in:
p4bl0 2011-07-14 10:55:59 +02:00
parent 5bee51b29e
commit 7f09b18e49

View file

@ -12,10 +12,10 @@ fugitive_write_template() {
fugitive_install_hooks() { fugitive_install_hooks() {
echo -n "Installing fugitive hooks scripts... " echo -n "Installing fugitive hooks scripts... "
(base64 -d | gunzip) >> .git/hooks/pre-commit <<EOF (base64 -d | gunzip) > .git/hooks/pre-commit <<EOF
#INCLUDE:pre-commit.sh# #INCLUDE:pre-commit.sh#
EOF EOF
(base64 -d | gunzip) >> .git/hooks/pre-receive <<EOF (base64 -d | gunzip) > .git/hooks/pre-receive <<EOF
#INCLUDE:pre-receive.sh# #INCLUDE:pre-receive.sh#
EOF EOF
(base64 -d | gunzip) > .git/hooks/post-commit <<EOF (base64 -d | gunzip) > .git/hooks/post-commit <<EOF