Skip to content

Commit

Permalink
Test for packed tags in git-describe output
Browse files Browse the repository at this point in the history
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 <spearce@spearce.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Shawn O. Pearce authored and Junio C Hamano committed Mar 4, 2008
1 parent be7bae0 commit d1b28f5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions t/t6120-describe.sh
Original file line number Diff line number Diff line change
Expand Up @@ -98,4 +98,7 @@ check_describe B --tags HEAD^^2^

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

test_expect_success 'pack tag refs' 'git pack-refs'
check_describe A-* HEAD

test_done

0 comments on commit d1b28f5

Please sign in to comment.