]> git.ipfire.org Git - thirdparty/git.git/commitdiff
ls-files: fix black space in error message
authorZheNing Hu <adlternative@gmail.com>
Sun, 11 Sep 2022 14:03:17 +0000 (14:03 +0000)
committerJunio C Hamano <gitster@pobox.com>
Mon, 12 Sep 2022 16:25:40 +0000 (09:25 -0700)
ce74de9(ls-files: introduce "--format" option) miss
a space between two words incorrectly, it leads to
wrong i10n messages. So fix it by adding a space at
the end of the error message.

Signed-off-by: ZheNing Hu <adlternative@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/ls-files.c

index 779dc18e59d56b46bcccba7ac9754726e6b1935e..4cf8a2364835c9fc1ae39b8d52fd09a8aeeb368e 100644 (file)
@@ -257,7 +257,7 @@ static size_t expand_show_index(struct strbuf *sb, const char *start,
 
        end = strchr(start + 1, ')');
        if (!end)
-               die(_("bad ls-files format: element '%s'"
+               die(_("bad ls-files format: element '%s' "
                      "does not end in ')'"), start);
 
        len = end - start + 1;