Code

t3032: limit sed branch labels to 8 characters
authorBrandon Casey <drafnel@gmail.com>
Thu, 6 Jan 2011 00:30:03 +0000 (18:30 -0600)
committerJunio C Hamano <gitster@pobox.com>
Thu, 6 Jan 2011 20:34:52 +0000 (12:34 -0800)
POSIX leaves as unspecified the handling of labels greater than 8
characters.  Apparently, Sun decided to treat them as errors.  Make sed on
Solaris happy by trimming the length of labels to 8 characters.

Signed-off-by: Brandon Casey <casey@nrlssc.navy.mil>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t3032-merge-recursive-options.sh

index 2293797553d49c5221da10ca17f97eeba1f5d29d..de9ff89d14ff97f1691efee3a670084d4f20a249 100755 (executable)
@@ -16,13 +16,13 @@ test_description='merge-recursive options
 test_expect_success 'setup' '
        conflict_hunks () {
                sed -n -e "
-                       /^<<<</ b inconflict
+                       /^<<<</ b conflict
                        b
-                       : inconflict
+                       : conflict
                        p
                        /^>>>>/ b
                        n
-                       b inconflict
+                       b conflict
                " "$@"
        } &&