Skip to content

Commit a28adc2

Browse files
Ramsay Jonesgitster
authored andcommitted
t3032-*.sh: Do not strip CR from line-endings while grepping on MinGW
By default grep reads in text mode and converts CRLF into LF line endings, which causes tests 4, 6 and 8 to fail. In a similar manner to commit a94114a (Do not strip CR when grepping HTTP headers, 2010-09-12), we set (and export) the GREP_OPTIONS variable to -U so that grep will use binary mode. Signed-off-by: Ramsay Jones <[email protected]> Acked-by: Johannes Sixt <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 906a9a7 commit a28adc2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

t/t3032-merge-recursive-options.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ test_description='merge-recursive options
1414
. ./test-lib.sh
1515

1616
test_have_prereq SED_STRIPS_CR && SED_OPTIONS=-b
17+
test_have_prereq MINGW && export GREP_OPTIONS=-U
1718

1819
test_expect_success 'setup' '
1920
conflict_hunks () {

0 commit comments

Comments
 (0)