t7005-editor: Use $SHELL_PATH in the editor scripts
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>
Johannes Sixt committed
Mar 25, 2009 at 12:48 UTC
80f0e53d6bdde5d9be016e5cfbb5ff7c0257a00e
1 file changed
+1
t/t7005-editor.sh
+1
@@ -7,6 +7,7 @@ test_description='GIT_EDITOR, core.editor, and stuff'
7
for i in GIT_EDITOR core_editor EDITOR VISUAL vi
8
do
9
cat >e-$i.sh <<-EOF
10
+ #!$SHELL_PATH
11
echo "Edited by $i" >"\$1"
12
EOF
13
chmod +x e-$i.sh