summaryrefslogtreecommitdiffstats
path: root/git_hooks
diff options
context:
space:
mode:
authorClément DAVID <clement.david@scilab-enterprises.com>2016-02-29 17:47:25 +0100
committerCédric DELAMARRE <cedric.delamarre@scilab-enterprises.com>2016-03-04 09:53:38 +0100
commit504b36ad4b6730bc88666e89a0d4a3e3c03df5aa (patch)
tree0babafb6b76a55a3b8ad5b35fd1dfc32f1c46cba /git_hooks
parentfe5e0fc450328bb9f770dd221cde94dbbbf9fab0 (diff)
downloadscilab-504b36ad4b6730bc88666e89a0d4a3e3c03df5aa.zip
scilab-504b36ad4b6730bc88666e89a0d4a3e3c03df5aa.tar.gz
Git hooks: generate valid commit messages after 3f9d15da
Change-Id: I1ade2f900a3bc9469397168eeda29a72f9ddd095
Diffstat (limited to 'git_hooks')
-rwxr-xr-xgit_hooks/prepare-commit-msg2
1 files changed, 1 insertions, 1 deletions
diff --git a/git_hooks/prepare-commit-msg b/git_hooks/prepare-commit-msg
index 78a6f23..b2cf90d 100755
--- a/git_hooks/prepare-commit-msg
+++ b/git_hooks/prepare-commit-msg
@@ -11,7 +11,7 @@ case $SOURCE in
11'') 11'')
12 TMP=`mktemp 2> /dev/null || mktemp -t 'mytmpdir'` && \ 12 TMP=`mktemp 2> /dev/null || mktemp -t 'mytmpdir'` && \
13 cat $FILE >$TMP && \ 13 cat $FILE >$TMP && \
14 git diff --cached scilab/CHANGES_* |sed -n '/^+/p' |sed -n '/^+++/!p' |sed 's/^.\{1\}//g' >$FILE && \ 14 git diff --cached scilab/CHANGES* |sed -n '/^+/p' |sed -n '/^+++/!p' |sed 's/^.\{1\}//g' >$FILE && \
15 cat $TMP >>$FILE && \ 15 cat $TMP >>$FILE && \
16 rm $TMP 16 rm $TMP
17 ;; 17 ;;