diff options
author | Junio C Hamano <gitster@pobox.com> | 2021-03-20 01:25:37 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2021-03-20 01:25:37 +0300 |
commit | 35381b13da846cc6ad620f9f9a5abf1d974d6e9b (patch) | |
tree | 9fbbe703441c5c11848cb140e88a46211703f483 /t | |
parent | 8779c141da62d66be5d420b94d506636006a7901 (diff) | |
parent | 7730f85594d4595605934e39d1d816ab663d8fa8 (diff) |
Merge branch 'jk/bisect-peel-tag-fix'
"git bisect" reimplemented more in C during 2.30 timeframe did not
take an annotated tag as a good/bad endpoint well. This regression
has been corrected.
* jk/bisect-peel-tag-fix:
bisect: peel annotated tags to commits
Diffstat (limited to 't')
-rwxr-xr-x | t/t6030-bisect-porcelain.sh | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/t/t6030-bisect-porcelain.sh b/t/t6030-bisect-porcelain.sh index 0ba5a91b4e..32bb66e1ed 100755 --- a/t/t6030-bisect-porcelain.sh +++ b/t/t6030-bisect-porcelain.sh @@ -939,4 +939,16 @@ test_expect_success 'git bisect reset cleans bisection state properly' ' test_path_is_missing ".git/BISECT_START" ' +test_expect_success 'bisect handles annotated tags' ' + test_commit commit-one && + git tag -m foo tag-one && + test_commit commit-two && + git tag -m foo tag-two && + git bisect start && + git bisect good tag-one && + git bisect bad tag-two >output && + bad=$(git rev-parse --verify tag-two^{commit}) && + grep "$bad is the first bad commit" output +' + test_done |