Skip to content

Commit

Permalink
submodule helper: remove double 'fatal: ' prefix
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Stefan Beller authored and Junio C Hamano committed Mar 1, 2016
1 parent 4830868 commit cdc04b6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions builtin/submodule--helper.c
Original file line number Diff line number Diff line change
Expand Up @@ -516,13 +516,13 @@ int cmd_submodule__helper(int argc, const char **argv, const char *prefix)
{
int i;
if (argc < 2)
die(_("fatal: submodule--helper subcommand must be "
die(_("submodule--helper subcommand must be "
"called with a subcommand"));

for (i = 0; i < ARRAY_SIZE(commands); i++)
if (!strcmp(argv[1], commands[i].cmd))
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]);
}

0 comments on commit cdc04b6

Please sign in to comment.