diff options
author | Johannes Sixt <j6t@kdbg.org> | 2009-03-25 12:48:30 +0100 |
---|---|---|
committer | Johannes Sixt <j6t@kdbg.org> | 2009-03-25 21:25:53 +0100 |
commit | 80f0e53d6bdde5d9be016e5cfbb5ff7c0257a00e (patch) | |
tree | 28d6f5bc7b94df04ba84a91e111c28fffbcbbbfa /t/t7005-editor.sh | |
parent | 28baf82ea359d9f2579fd3a7e7e2e5e2bd5da2a9 (diff) | |
download | git-80f0e53d6bdde5d9be016e5cfbb5ff7c0257a00e.tar.gz git-80f0e53d6bdde5d9be016e5cfbb5ff7c0257a00e.tar.xz |
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>
Diffstat (limited to 't/t7005-editor.sh')
-rwxr-xr-x | t/t7005-editor.sh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/t/t7005-editor.sh b/t/t7005-editor.sh index 2f8404afb..e83bc8fd8 100755 --- 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 |