t1700: new tests for split-index mode
[gitweb.git] / t / t3032-merge-recursive-options.sh
index 796f616abf17f40e59212b7abb80867f851baa55..5fd7bbb65244bdf6470508b6bc79aef58e79e86d 100755 (executable)
@@ -13,16 +13,19 @@ test_description='merge-recursive options
 
 . ./test-lib.sh
 
+test_have_prereq SED_STRIPS_CR && SED_OPTIONS=-b
+test_have_prereq GREP_STRIPS_CR && export GREP_OPTIONS=-U
+
 test_expect_success 'setup' '
        conflict_hunks () {
-               sed -n -e "
-                       /^<<<</ b inconflict
+               sed $SED_OPTIONS -n -e "
+                       /^<<<</ b conflict
                        b
-                       : inconflict
+                       : conflict
                        p
                        /^>>>>/ b
                        n
-                       b inconflict
+                       b conflict
                " "$@"
        } &&