submodule helper: remove double 'fatal: ' prefix
The prefix is added by die(...), so we don't have to do it. Signed-off-by: Stefan Beller <sbeller@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
48308681b0
commit
cdc04b65b4
@ -516,13 +516,13 @@ int cmd_submodule__helper(int argc, const char **argv, const char *prefix)
|
|||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
if (argc < 2)
|
if (argc < 2)
|
||||||
die(_("fatal: submodule--helper subcommand must be "
|
die(_("submodule--helper subcommand must be "
|
||||||
"called with a subcommand"));
|
"called with a subcommand"));
|
||||||
|
|
||||||
for (i = 0; i < ARRAY_SIZE(commands); i++)
|
for (i = 0; i < ARRAY_SIZE(commands); i++)
|
||||||
if (!strcmp(argv[1], commands[i].cmd))
|
if (!strcmp(argv[1], commands[i].cmd))
|
||||||
return commands[i].fn(argc - 1, argv + 1, prefix);
|
return commands[i].fn(argc - 1, argv + 1, prefix);
|
||||||
|
|
||||||
die(_("fatal: '%s' is not a valid submodule--helper "
|
die(_("'%s' is not a valid submodule--helper "
|
||||||
"subcommand"), argv[1]);
|
"subcommand"), argv[1]);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user