git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH 2/3] Test for packed tags in git-describe output

From
Shawn O. Pearce <spearce@spearce.org>
Date
Mar 4, 2008, 01:09 UTC
Message-ID
<20080304010935.GB15791@spearce.org>

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>
---
 t/t6120-describe.sh |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/t/t6120-describe.sh b/t/t6120-describe.sh
index ba9ea60..cc24477 100755
--- a/t/t6120-describe.sh
+++ b/t/t6120-describe.sh
@@ -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
-- 
1.5.4.3.529.gb25fb
Message 1 of 1 in “Test for packed tags in git-describe output”
  1. 2/3 Test for packed tags in git-describe outputShawn O. Pearce, Mar 4, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.