Do NOT deploy `perpare-commit-msg`.
This commit is contained in:
parent
4b911ce98a
commit
12aabfb6c0
|
@ -1,18 +0,0 @@
|
||||||
#!/bin/sh
|
|
||||||
|
|
||||||
if [ "$2" = "" ]; then
|
|
||||||
mv $1 $1.tmp
|
|
||||||
|
|
||||||
ID=`git branch | grep ^\* | awk '{print $2}' | cut -f 2 -d "/"`
|
|
||||||
|
|
||||||
cat <<EOF > $1
|
|
||||||
|
|
||||||
|
|
||||||
This commit refs/fixes #${ID}.
|
|
||||||
# ^^^^^^^^^^
|
|
||||||
EOF
|
|
||||||
|
|
||||||
cat $1.tmp >> $1
|
|
||||||
fi
|
|
||||||
|
|
||||||
exit 0
|
|
|
@ -53,7 +53,6 @@ end
|
||||||
|
|
||||||
[
|
[
|
||||||
'/usr/share/git-core/templates/hooks/pre-commit',
|
'/usr/share/git-core/templates/hooks/pre-commit',
|
||||||
'/usr/share/git-core/templates/hooks/prepare-commit-msg',
|
|
||||||
].each do |conf|
|
].each do |conf|
|
||||||
remote_file conf do
|
remote_file conf do
|
||||||
user 'root'
|
user 'root'
|
||||||
|
|
Loading…
Reference in New Issue