summaryrefslogtreecommitdiffstats
path: root/git_hooks
diff options
context:
space:
mode:
authorFrancois Granade <francois.granade@scilab-enterprises.com>2015-12-08 19:31:20 +0100
committerClément DAVID <clement.david@scilab-enterprises.com>2015-12-09 10:41:04 +0100
commitfcf51c8695ee63c2450ddb4e107d9b615b467f29 (patch)
treeeaf74d50c9f32c15516c0e223a581ade5defc017 /git_hooks
parent374d941ef06f68cdf122ac2690a078dd1b1a6b63 (diff)
downloadscilab-fcf51c8695ee63c2450ddb4e107d9b615b467f29.zip
scilab-fcf51c8695ee63c2450ddb4e107d9b615b467f29.tar.gz
fixed the internal commit hook to work on Mac also.
mktemp takes different argument on Linux and Darwin (BSD) Change-Id: I341532fae8331d9f37ea769bfa6a03eb5e8b61fc
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 0bfbee9..78a6f23 100755
--- a/git_hooks/prepare-commit-msg
+++ b/git_hooks/prepare-commit-msg
@@ -9,7 +9,7 @@ COMMIT="$3"
9 9
10case $SOURCE in 10case $SOURCE in
11'') 11'')
12 TMP=$(mktemp) && \ 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 && \