summaryrefslogtreecommitdiff
path: root/http-push.c
diff options
context:
space:
mode:
authorMichael Schubert <mschub@elegosoft.com>2011-07-08 10:08:49 (GMT)
committerJunio C Hamano <gitster@pobox.com>2011-07-08 15:59:44 (GMT)
commit823e0ded8a319425496967dcb284e7e3ce2b6c29 (patch)
tree82c2eee4b73bc4a99a1e509370586a89aa1b4781 /http-push.c
parentd28790dc31ca1bcdca7254a6b9381b6c84e91271 (diff)
downloadgit-823e0ded8a319425496967dcb284e7e3ce2b6c29.zip
git-823e0ded8a319425496967dcb284e7e3ce2b6c29.tar.gz
git-823e0ded8a319425496967dcb284e7e3ce2b6c29.tar.bz2
help_unknown_cmd: do not propose an "unknown" cmd
When executing an external shell script like `git foo` with a bad shebang, e.g. "#!/usr/bin/not/existing", execvp returns 127 (ENOENT). Since help_unknown_cmd proposes the use of all external commands similar to the name of the "unknown" command, it suggests the just failed command again. Stop it and give some advice to the user. Helped-by: Jeff King <peff@peff.net> Signed-off-by: Michael Schubert <mschub@elegosoft.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'http-push.c')
0 files changed, 0 insertions, 0 deletions