tag: fix typo in nested tagging hint

In eea9c1e78f (tag: advise on nested tags, 2019-04-04), tag was taught to hint at the user if a nested tag is made. However, this message had a typo and it said "The object referred to by your new is...", which was missing a "tag" after "new". Fix this message by adding the "tag". Signed-off-by: Denton Liu <liu.denton@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Denton Liu committed May 8, 2019 at 15:16 UTC a54b2ab345c4e50e2adfbdeab7d716f5be77a6b3
2 files changed +2 -2
builtin/tag.c
+1 -1
@@ -207,7 +207,7 @@ struct create_tag_options {
207 };
208
209 static const char message_advice_nested_tag[] =
210 - N_("You have created a nested tag. The object referred to by your new is\n"
210 + N_("You have created a nested tag. The object referred to by your new tag is\n"
211 "already a tag. If you meant to tag the object that it points to, use:\n"
212 "\n"
213 "\tgit tag -f %s %s^{}");
t/t7004-tag.sh
+1 -1
@@ -1702,7 +1702,7 @@ test_expect_success '--points-at finds annotated tags of tags' '
1702
1703 test_expect_success 'recursive tagging should give advice' '
1704 sed -e "s/|$//" <<-EOF >expect &&
1705 - hint: You have created a nested tag. The object referred to by your new is
1705 + hint: You have created a nested tag. The object referred to by your new tag is
1706 hint: already a tag. If you meant to tag the object that it points to, use:
1707 hint: |
1708 hint: git tag -f nested annotated-v4.0^{}