diff options
author | Junio C Hamano <gitster@pobox.com> | 2021-02-12 22:21:04 (GMT) |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2021-02-12 22:21:04 (GMT) |
commit | 2c873f97913994f8478a9078ff8b62e17378a0ed (patch) | |
tree | 339865bbaf42bb1c30a2d4999187417fd5926a5f /t/t5703-upload-pack-ref-in-want.sh | |
parent | f0117958910fbc734457a83a9f8ecc3c62463417 (diff) | |
parent | db89a82b5b24fbe21ad273c8d8b442eef59aadd7 (diff) | |
download | git-2c873f97913994f8478a9078ff8b62e17378a0ed.zip git-2c873f97913994f8478a9078ff8b62e17378a0ed.tar.gz git-2c873f97913994f8478a9078ff8b62e17378a0ed.tar.bz2 |
Merge branch 'ab/tests-various-fixup'
Various test updates.
* ab/tests-various-fixup:
rm tests: actually test for SIGPIPE in SIGPIPE test
archive tests: use a cheaper "zipinfo -h" invocation to get header
upload-pack tests: avoid a non-zero "grep" exit status
git-svn tests: rewrite brittle tests to use "--[no-]merges".
git svn mergeinfo tests: refactor "test -z" to use test_must_be_empty
git svn mergeinfo tests: modernize redirection & quoting style
cache-tree tests: explicitly test HEAD and index differences
cache-tree tests: use a sub-shell with less indirection
cache-tree tests: remove unused $2 parameter
cache-tree tests: refactor for modern test style
Diffstat (limited to 't/t5703-upload-pack-ref-in-want.sh')
-rwxr-xr-x | t/t5703-upload-pack-ref-in-want.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/t/t5703-upload-pack-ref-in-want.sh b/t/t5703-upload-pack-ref-in-want.sh index 64d8f99..e9e4716 100755 --- a/t/t5703-upload-pack-ref-in-want.sh +++ b/t/t5703-upload-pack-ref-in-want.sh @@ -19,7 +19,8 @@ get_actual_commits () { 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 + sed -n -e 's/\([0-9a-f][0-9a-f]*\) commit .*/\1/p' objs >objs.sed && + sort >actual_commits <objs.sed } check_output () { |