Skip to content

Commit d1b28f5

Browse files
spearcegitster
authored andcommitted
Test for packed tags in git-describe output
In c374b91 ("git-describe: use tags found in packed-refs correctly") Junio fixed an issue where git-describe did not parse a tag object it obtained from a packed-refs file, as the peel information was read in from packed-refs and not the tag object itself. This new test case verifies the fix listed above is functioning, and does not have a regression in the future. Signed-off-by: Shawn O. Pearce <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent be7bae0 commit d1b28f5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

t/t6120-describe.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,4 +98,7 @@ check_describe B --tags HEAD^^2^
9898

9999
check_describe B-0-* --long HEAD^^2^
100100

101+
test_expect_success 'pack tag refs' 'git pack-refs'
102+
check_describe A-* HEAD
103+
101104
test_done

0 commit comments

Comments
 (0)