summaryrefslogtreecommitdiff
path: root/t/t5703-upload-pack-ref-in-want.sh
diff options
context:
space:
mode:
authorĐoàn Trần Công Danh <congdanhqx@gmail.com>2020-03-26 04:37:38 (GMT)
committerJunio C Hamano <gitster@pobox.com>2020-03-27 00:30:48 (GMT)
commit84370e36bb6b26182f70567b2d94d77960d85b3f (patch)
treece89ffcf47bc0175ec6c62cec1c1d1d60e1d4382 /t/t5703-upload-pack-ref-in-want.sh
parentf73533aa38e5a8f3e56d1cc7d31852b0710b3e39 (diff)
downloadgit-84370e36bb6b26182f70567b2d94d77960d85b3f.zip
git-84370e36bb6b26182f70567b2d94d77960d85b3f.tar.gz
git-84370e36bb6b26182f70567b2d94d77960d85b3f.tar.bz2
t5703: feed raw data into test-tool unpack-sideband
busybox's sed isn't binary clean. Thus, triggers false-negative on this test. We could replace sed with perl on this usecase. But, we could slightly modify the helper to discard unwanted data in the beginning. Fix the false negative by updating this helper. Helped-by: Jeff King <peff@peff.net> Signed-off-by: Đoàn Trần Công Danh <congdanhqx@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t5703-upload-pack-ref-in-want.sh')
-rwxr-xr-xt/t5703-upload-pack-ref-in-want.sh5
1 files changed, 1 insertions, 4 deletions
diff --git a/t/t5703-upload-pack-ref-in-want.sh b/t/t5703-upload-pack-ref-in-want.sh
index 7fba306..a34460f 100755
--- a/t/t5703-upload-pack-ref-in-want.sh
+++ b/t/t5703-upload-pack-ref-in-want.sh
@@ -13,10 +13,7 @@ get_actual_refs () {
}
get_actual_commits () {
- sed -n -e '/packfile/,/0000/{
- /packfile/d
- p
- }' <out | test-tool pkt-line unpack-sideband >o.pack &&
+ test-tool pkt-line unpack-sideband <out >o.pack &&
git index-pack o.pack &&
git verify-pack -v o.idx >objs &&
grep commit objs | cut -d" " -f1 | sort >actual_commits