aboutsummaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorBrandon Casey <casey@nrlssc.navy.mil>2009-05-06 17:56:18 -0500
committerJunio C Hamano <gitster@pobox.com>2009-05-06 16:43:29 -0700
commit5e16488edc3cf9d5c30d08fcd9b74525198d6184 (patch)
treed5df11a5cfc7799244d2b83d59a8c4080d5a2a88 /t
parent9eda0e980a43e6bf5167e1b35f457f970bec7b74 (diff)
downloadgit-5e16488edc3cf9d5c30d08fcd9b74525198d6184.tar.gz
git-5e16488edc3cf9d5c30d08fcd9b74525198d6184.tar.xz
t4200: convert sed expression which operates on non-text file to perl
POSIX only requires sed to work on text files and MERGE_RR is not a text file. Some versions of sed complain that this file is not newline terminated, and exit non-zero. Use perl instead which does not have a problem with it. Signed-off-by: Brandon Casey <casey@nrlssc.navy.mil> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't')
-rwxr-xr-xt/t4200-rerere.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/t4200-rerere.sh b/t/t4200-rerere.sh
index 504802c98..a6bc028a5 100755
--- a/t/t4200-rerere.sh
+++ b/t/t4200-rerere.sh
@@ -57,7 +57,7 @@ test_expect_success 'conflicting merge' '
test_must_fail git merge first
'
-sha1=$(sed -e 's/ .*//' .git/MERGE_RR)
+sha1=$(perl -pe 's/ .*//' .git/MERGE_RR)
rr=.git/rr-cache/$sha1
test_expect_success 'recorded preimage' "grep ^=======$ $rr/preimage"