author | Shawn O. Pearce <spearce@spearce.org> | |
Tue, 4 Mar 2008 01:09:38 +0000 (20:09 -0500) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Tue, 4 Mar 2008 02:26:40 +0000 (18:26 -0800) | ||
commit | 3291fe4072ee3ac52fb927a0b504d4440d3bbe5a | |
tree | a893349bf8da38e19df17cfb8b5a4f10480f2dba | tree | snapshot |
parent | d1b28f512c6d2c7d373c746d8876dbf177ddf114 | commit | diff |
Add git-describe test for "verify annotated tag names on output"
Back in 212945d4 ("Teach git-describe to verify annotated tag names
before output") I taught git-describe to output the name shown in the
"tag" header of an annotated tag, rather than the name it is actually
stored under in this repository's ref namespace.
This test case verifies this is working correctly by renaming the ref
for an annotated tag to a different name that what is recorded in the
tag body, and verifying that tag is returned. We also verify there is
a message shown on stderr to inform the user that the tag is possibly
stored under the wrong name locally.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Back in 212945d4 ("Teach git-describe to verify annotated tag names
before output") I taught git-describe to output the name shown in the
"tag" header of an annotated tag, rather than the name it is actually
stored under in this repository's ref namespace.
This test case verifies this is working correctly by renaming the ref
for an annotated tag to a different name that what is recorded in the
tag body, and verifying that tag is returned. We also verify there is
a message shown on stderr to inform the user that the tag is possibly
stored under the wrong name locally.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t6120-describe.sh | diff | blob | history |