summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Sixt <j6t@kdbg.org>2010-01-01 22:14:06 (GMT)
committerJunio C Hamano <gitster@pobox.com>2010-01-06 07:40:43 (GMT)
commitfa7151a61edf585abdbb3d2831e7992bf3925671 (patch)
treedf0ecf18d33d4a12eb100b5e66710bd748846e40
parent8dba1e634af1d973a47fca616a63e7062a256790 (diff)
downloadgit-fa7151a61edf585abdbb3d2831e7992bf3925671.zip
git-fa7151a61edf585abdbb3d2831e7992bf3925671.tar.gz
git-fa7151a61edf585abdbb3d2831e7992bf3925671.tar.bz2
t0021: use $SHELL_PATH for the filter script
On Windows, we need the shbang line to correctly invoke shell scripts via a POSIX shell, except when the script is invoked via 'sh -c' because sh (a bash) does "the right thing". But the clean and smudge filters will not always be invoked via 'sh -c'; to futureproof, we should mark the the one in t0021-conversion with #!$SHELL_PATH. Signed-off-by: Johannes Sixt <j6t@kdbg.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rwxr-xr-xt/t0021-conversion.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/t/t0021-conversion.sh b/t/t0021-conversion.sh
index 8fc39d7..6cb8d60 100755
--- a/t/t0021-conversion.sh
+++ b/t/t0021-conversion.sh
@@ -4,7 +4,8 @@ test_description='blob conversion via gitattributes'
. ./test-lib.sh
-cat <<\EOF >rot13.sh
+cat <<EOF >rot13.sh
+#!$SHELL_PATH
tr \
'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ' \
'nopqrstuvwxyzabcdefghijklmNOPQRSTUVWXYZABCDEFGHIJKLM'