diff options
author | Junio C Hamano <gitster@pobox.com> | 2017-06-26 21:09:29 (GMT) |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-06-26 21:09:29 (GMT) |
commit | 5c83d850d076ebc00b149975981703a6a664892b (patch) | |
tree | ad73b67921955035e55321ade766f28cbc9cc048 /t | |
parent | 849b44cdf193908dfe1cadc731fb23019b53a211 (diff) | |
parent | 03df567fbf6afeca32f6a27d04656c1a3a162453 (diff) | |
download | git-5c83d850d076ebc00b149975981703a6a664892b.zip git-5c83d850d076ebc00b149975981703a6a664892b.tar.gz git-5c83d850d076ebc00b149975981703a6a664892b.tar.bz2 |
Merge branch 'mh/packed-ref-store-prep'
Bugfix for a topic that is (only) in 'master'.
* mh/packed-ref-store-prep:
for_each_bisect_ref(): don't trim refnames
lock_packed_refs(): fix cache validity check
Diffstat (limited to 't')
-rwxr-xr-x | t/t6002-rev-list-bisect.sh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/t/t6002-rev-list-bisect.sh b/t/t6002-rev-list-bisect.sh index 3bf2759..534903b 100755 --- a/t/t6002-rev-list-bisect.sh +++ b/t/t6002-rev-list-bisect.sh @@ -235,4 +235,18 @@ test_sequence "--bisect" # # + +test_expect_success '--bisect can default to good/bad refs' ' + git update-ref refs/bisect/bad c3 && + good=$(git rev-parse b1) && + git update-ref refs/bisect/good-$good $good && + good=$(git rev-parse c1) && + git update-ref refs/bisect/good-$good $good && + + # the only thing between c3 and c1 is c2 + git rev-parse c2 >expect && + git rev-list --bisect >actual && + test_cmp expect actual +' + test_done |