t3032: limit sed branch labels to 8 characters

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>
This commit is contained in:
Brandon Casey 2011-01-05 18:30:03 -06:00 committed by Junio C Hamano
parent ed40ec551d
commit bc2d159421

View File

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