Skip to content

Commit

Permalink
t3032-*.sh: Do not strip CR from line-endings while grepping on MinGW
Browse files Browse the repository at this point in the history
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 <ramsay@ramsay1.demon.co.uk>
Acked-by: Johannes Sixt <j6t@kdbg.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Ramsay Jones authored and Junio C Hamano committed Jan 9, 2011
1 parent 906a9a7 commit a28adc2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions t/t3032-merge-recursive-options.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ test_description='merge-recursive options
. ./test-lib.sh

test_have_prereq SED_STRIPS_CR && SED_OPTIONS=-b
test_have_prereq MINGW && export GREP_OPTIONS=-U

test_expect_success 'setup' '
conflict_hunks () {
Expand Down

0 comments on commit a28adc2

Please sign in to comment.