@matheusbsbs / matheus-bagliano / commits / d1b28f512c
Fork 0

Test for packed tags in git-describe output

In c374b91c ("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 <spearce@spearce.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Shawn O. Pearce committed Mar 3, 2008 at 20:09 UTC d1b28f512c6d2c7d373c746d8876dbf177ddf114
1 file changed +3
t/t6120-describe.sh
+3
@@ -98,4 +98,7 @@ check_describe B --tags HEAD^^2^
98
99 check_describe B-0-* --long HEAD^^2^
100
101 +test_expect_success 'pack tag refs' 'git pack-refs'
102 +check_describe A-* HEAD
103 +
104 test_done