Merge branch 'maint-1.7.0' into maint
[gitweb.git] / t / t3032-merge-recursive-options.sh
index de9ff89d14ff97f1691efee3a670084d4f20a249..44f5421be45579b10c5556a958404ad2daa02002 100755 (executable)
@@ -13,9 +13,12 @@ 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 () {
-               sed -n -e "
+               sed $SED_OPTIONS -n -e "
                        /^<<<</ b conflict
                        b
                        : conflict