@matheusbsbs / matheus-bagliano / commits / fa7151a61e
Fork 0

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>

Johannes Sixt committed Jan 1, 2010 at 23:14 UTC fa7151a61edf585abdbb3d2831e7992bf3925671
1 file changed +2 -1
t/t0021-conversion.sh
+2 -1
@@ -4,7 +4,8 @@ test_description='blob conversion via gitattributes'
4
5 . ./test-lib.sh
6
7 -cat <<\EOF >rot13.sh
7 +cat <<EOF >rot13.sh
8 +#!$SHELL_PATH
9 tr \
10 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ' \
11 'nopqrstuvwxyzabcdefghijklmNOPQRSTUVWXYZABCDEFGHIJKLM'