Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
tests: shell negation portability fix
[gitweb.git]
/
t
/
t7505-prepare-commit-msg-hook.sh
diff --git
a/t/t7505-prepare-commit-msg-hook.sh
b/t/t7505-prepare-commit-msg-hook.sh
index cd6c7c834218fd4c46c49396b79da1ddeef42772..ff189624d48fb9f68997395d121d4e7056511245 100755
(executable)
--- a/
t/t7505-prepare-commit-msg-hook.sh
+++ b/
t/t7505-prepare-commit-msg-hook.sh
@@
-32,7
+32,7
@@
echo "#!$SHELL_PATH" > "$HOOK"
cat >> "$HOOK" <<'EOF'
if test "$2" = commit; then
- source=$(git
-
rev-parse "$3")
+ source=$(git
rev-parse "$3")
else
source=${2-default}
fi