summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--help.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/help.c b/help.c
index 1cd33ece6b..814a8cd02a 100644
--- a/help.c
+++ b/help.c
@@ -185,8 +185,7 @@ static void show_man_page(const char *git_cmd)
void help_unknown_cmd(const char *cmd)
{
- printf("git: '%s' is not a git-command\n\n", cmd);
- list_common_cmds_help();
+ fprintf(stderr, "git: '%s' is not a git-command. See --help\n\n", cmd);
exit(1);
}