summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorLibravatar Shawn O. Pearce <spearce@spearce.org>2007-03-12 18:59:16 -0400
committerLibravatar Junio C Hamano <junkio@cox.net>2007-03-12 17:37:30 -0700
commit6016e35bc18e801a7bd855b1581da6c7fd755470 (patch)
treea1a2ea5167594995a7651362556670942459ab80 /t
parentSimplify closing two fds at once in run-command.c (diff)
downloadtgif-6016e35bc18e801a7bd855b1581da6c7fd755470.tar.xz
Fix t5510-fetch's use of sed
POSIX says sed may add a trailing LF if there isn't already one there. We shouldn't rely on it not adding that LF, as some systems (Mac OS X for example) will add it. Signed-off-by: Shawn O. Pearce <spearce@spearce.org> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 't')
-rwxr-xr-xt/t5510-fetch.sh8
1 files changed, 7 insertions, 1 deletions
diff --git a/t/t5510-fetch.sh b/t/t5510-fetch.sh
index ee3f397a9b..426017e1d0 100755
--- a/t/t5510-fetch.sh
+++ b/t/t5510-fetch.sh
@@ -134,7 +134,13 @@ test_expect_success 'bundle does not prerequisite objects' '
git add file2 &&
git commit -m add.file2 file2 &&
git bundle create bundle3 -1 HEAD &&
- sed "1,4d" < bundle3 > bundle.pack &&
+ (
+ while read x && test -n "$x"
+ do
+ :;
+ done
+ cat
+ ) <bundle3 >bundle.pack &&
git index-pack bundle.pack &&
test 4 = $(git verify-pack -v bundle.pack | wc -l)
'