Skip to content

Commit

Permalink
ls-files: fix black space in error message
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
adlternative authored and gitster committed Sep 12, 2022
1 parent ce74de9 commit 746aae3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion builtin/ls-files.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 746aae3

Please sign in to comment.