projects
/
git.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
completion: add --no-edit to git-commit
[git.git]
/
run-command.c
diff --git
a/run-command.c
b/run-command.c
index 606791dc674a1d24459d85504f0c981634b52020..f9922b9ecc8e4956e19d7143bb6cb6ef4d97abf8 100644
(file)
--- a/
run-command.c
+++ b/
run-command.c
@@
-139,6
+139,8
@@
int sane_execvp(const char *file, char * const argv[])
*/
if (errno == EACCES && !strchr(file, '/'))
errno = exists_in_PATH(file) ? EACCES : ENOENT;
+ else if (errno == ENOTDIR && !strchr(file, '/'))
+ errno = ENOENT;
return -1;
}