the use of 'tr' in the test suite isn't really portable
Some versions of 'tr' only accept octal codes if entered with three digits, and therefor misinterpret the '\0' in the test suite. Some versions of 'tr' reject the (needless) use of character classes. Signed-off-by: H.Merijn Brand <h.m.brand@xs4all.nl> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:

committed by
Junio C Hamano

parent
68e6a4f80d
commit
3175b0cfc1
@ -99,7 +99,7 @@ test_expect_success 'no diff with -diff' '
|
||||
git diff | grep Binary
|
||||
'
|
||||
|
||||
echo NULZbetweenZwords | tr Z '\0' > file
|
||||
echo NULZbetweenZwords | tr Z '\000' > file
|
||||
|
||||
test_expect_success 'force diff with "diff"' '
|
||||
echo >.gitattributes "file diff" &&
|
||||
|
Reference in New Issue
Block a user