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
1 changed files with 2 additions and 2 deletions

View File

@ -12,10 +12,10 @@ fugitive_write_template() {
fugitive_install_hooks() {
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#
EOF
(base64 -d | gunzip) >> .git/hooks/pre-receive <<EOF
(base64 -d | gunzip) > .git/hooks/pre-receive <<EOF
#INCLUDE:pre-receive.sh#
EOF
(base64 -d | gunzip) > .git/hooks/post-commit <<EOF