File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -158,7 +158,7 @@ static void display_name(struct commit_name *n)
158158 n -> tag = lookup_tag (n -> sha1 );
159159 if (!n -> tag || parse_tag (n -> tag ) || !n -> tag -> tag )
160160 die ("annotated tag %s not available" , n -> path );
161- if (strcmp (n -> tag -> tag , n -> path ))
161+ if (strcmp (n -> tag -> tag , all ? n -> path + 5 : n -> path ))
162162 warning ("tag '%s' is really '%s' here" , n -> tag -> tag , n -> path );
163163 }
164164
Original file line number Diff line number Diff line change @@ -100,6 +100,12 @@ check_describe B --tags HEAD^^2^
100100check_describe B-0-* --long HEAD^^2^
101101check_describe A-3-* --long HEAD^^2
102102
103+ : > err.expect
104+ check_describe A --all A^0
105+ test_expect_success ' no warning was displayed for A' '
106+ test_cmp err.expect err.actual
107+ '
108+
103109test_expect_success ' rename tag A to Q locally' '
104110 mv .git/refs/tags/A .git/refs/tags/Q
105111'
You can’t perform that action at this time.
0 commit comments