mirror of
https://git.ludikovsky.name/git/fugitive.git
synced 2024-10-05 15:35:29 +02:00
rewrite instead of append for pre- hooks
This commit is contained in:
parent
5bee51b29e
commit
7f09b18e49
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue