Skip to content

Commit

Permalink
t7005-editor: Use $SHELL_PATH in the editor scripts
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Johannes Sixt committed Mar 25, 2009
1 parent 28baf82 commit 80f0e53
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions t/t7005-editor.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 80f0e53

Please sign in to comment.