Skip to content

Commit fa7151a

Browse files
j6tgitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 8dba1e6 commit fa7151a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

t/t0021-conversion.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ test_description='blob conversion via gitattributes'
44

55
. ./test-lib.sh
66

7-
cat <<\EOF >rot13.sh
7+
cat <<EOF >rot13.sh
8+
#!$SHELL_PATH
89
tr \
910
'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ' \
1011
'nopqrstuvwxyzabcdefghijklmNOPQRSTUVWXYZABCDEFGHIJKLM'

0 commit comments

Comments
 (0)