aboutsummaryrefslogtreecommitdiff
path: root/git.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2008-09-07 23:52:16 -0700
committerJunio C Hamano <gitster@pobox.com>2008-09-07 23:52:16 -0700
commit277cd4c4bd8cca31395846fc80ea28bf2cd4ddf2 (patch)
tree613693df1a0eaba807948a3910dab046fecd77a6 /git.c
parentcd50988ae03e086ca1a8f18584153d359699ea25 (diff)
parentf0e90716d47b429284702b75425a247c9fc41adb (diff)
downloadgit-277cd4c4bd8cca31395846fc80ea28bf2cd4ddf2.tar.gz
git-277cd4c4bd8cca31395846fc80ea28bf2cd4ddf2.tar.xz
Merge branch 'ar/autospell'
* ar/autospell: Add help.autocorrect to enable/disable autocorrecting git wrapper: DWIM mistyped commands
Diffstat (limited to 'git.c')
-rw-r--r--git.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/git.c b/git.c
index fdb0f7101..adf735240 100644
--- a/git.c
+++ b/git.c
@@ -499,7 +499,9 @@ int main(int argc, const char **argv)
cmd, argv[0]);
exit(1);
}
- help_unknown_cmd(cmd);
+ argv[0] = help_unknown_cmd(cmd);
+ handle_internal_command(argc, argv);
+ execv_dashed_external(argv);
}
fprintf(stderr, "Failed to run command '%s': %s\n",