]> git.ipfire.org Git - thirdparty/git.git/commitdiff
tag: fix typo in nested tagging hint
authorDenton Liu <liu.denton@gmail.com>
Wed, 8 May 2019 19:16:41 +0000 (15:16 -0400)
committerJunio C Hamano <gitster@pobox.com>
Thu, 9 May 2019 06:10:38 +0000 (15:10 +0900)
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>
builtin/tag.c
t/t7004-tag.sh

index 32948fade05c75d7f923ca0b17e93ef0ef714e1a..16b59c45cfdc3637effc33342c405bf66ac8da0c 100644 (file)
@@ -207,7 +207,7 @@ struct create_tag_options {
 };
 
 static const char message_advice_nested_tag[] =
-       N_("You have created a nested tag. The object referred to by your new is\n"
+       N_("You have created a nested tag. The object referred to by your new tag is\n"
           "already a tag. If you meant to tag the object that it points to, use:\n"
           "\n"
           "\tgit tag -f %s %s^{}");
index e285686662df781c87d59c910aa9d596eb974c34..6aeeb279a0a03614151a37f1bed8f22f4af0c4f5 100755 (executable)
@@ -1702,7 +1702,7 @@ test_expect_success '--points-at finds annotated tags of tags' '
 
 test_expect_success 'recursive tagging should give advice' '
        sed -e "s/|$//" <<-EOF >expect &&
-       hint: You have created a nested tag. The object referred to by your new is
+       hint: You have created a nested tag. The object referred to by your new tag is
        hint: already a tag. If you meant to tag the object that it points to, use:
        hint: |
        hint:   git tag -f nested annotated-v4.0^{}