summaryrefslogtreecommitdiff
path: root/t/t2000-checkout-cache-clash.sh
diff options
context:
space:
mode:
authorJonathan Nieder <jrnieder@gmail.com>2013-03-18 16:13:41 -0700
committerJunio C Hamano <gitster@pobox.com>2013-03-19 11:07:26 -0700
commit848575d833ca0d9d47db372348576f3b98bd19b7 (patch)
treea81b6e6eb516e60ad9955978bcbdcaa1535879f2 /t/t2000-checkout-cache-clash.sh
parent3c695523384855dffba49aec7f0a77e555ced822 (diff)
downloadgit-848575d833ca0d9d47db372348576f3b98bd19b7.tar.gz
push test: simplify check of push result
This test checks each ref with code like the following: r=$(git show-ref -s --verify refs/$ref) && test "z$r" = "z$the_first_commit" Afterward it counts refs: test 1 = $(git for-each-ref refs/remotes/origin | wc -l) Simpler to test the number and values of relevant refs in for-each-ref output at the same time using test_cmp. This makes the test more readable and provides more helpful "./t5516-push-push.sh -v" output when the test fails. Signed-off-by: Jonathan Nieder <jrnieder@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t2000-checkout-cache-clash.sh')
0 files changed, 0 insertions, 0 deletions