projects
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
28baf82
)
t7005-editor: Use $SHELL_PATH in the editor scripts
author
Johannes Sixt
<j6t@kdbg.org>
Wed, 25 Mar 2009 11:48:30 +0000
(12:48 +0100)
committer
Johannes Sixt
<j6t@kdbg.org>
Wed, 25 Mar 2009 20:25:53 +0000
(21:25 +0100)
The test sets up various shell scripts and uses them as commit message
editors. On Windows, we need a shebang line in order to recognize the
files as executable shell scripts. This adds it.
Signed-off-by: Johannes Sixt <j6t@kdbg.org>
t/t7005-editor.sh
patch
|
blob
|
history
diff --git
a/t/t7005-editor.sh
b/t/t7005-editor.sh
index 2f8404afbbc38e9bed17b1d3c9dde22ddcb2eaa2..e83bc8fd89c35db06f9bd8f0f4861c0b61c11023 100755
(executable)
--- a/
t/t7005-editor.sh
+++ b/
t/t7005-editor.sh
@@
-7,6
+7,7
@@
test_description='GIT_EDITOR, core.editor, and stuff'
for i in GIT_EDITOR core_editor EDITOR VISUAL vi
do
cat >e-$i.sh <<-EOF
+ #!$SHELL_PATH
echo "Edited by $i" >"\$1"
EOF
chmod +x e-$i.sh