projects
/
scilab.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
[bug_14096] msscanf fixed about the %s switch to %ls
[scilab.git]
/
git_hooks
/
prepare-commit-msg
diff --git
a/git_hooks/prepare-commit-msg
b/git_hooks/prepare-commit-msg
index
0bfbee9
..
78a6f23
100755
(executable)
--- a/
git_hooks/prepare-commit-msg
+++ b/
git_hooks/prepare-commit-msg
@@
-9,7
+9,7
@@
COMMIT="$3"
case $SOURCE in
'')
- TMP=$(mktemp) && \
+ TMP=`mktemp 2> /dev/null || mktemp -t 'mytmpdir'` && \
cat $FILE >$TMP && \
git diff --cached scilab/CHANGES_* |sed -n '/^+/p' |sed -n '/^+++/!p' |sed 's/^.\{1\}//g' >$FILE && \
cat $TMP >>$FILE && \