mirror of
https://github.com/git/git.git
synced 2026-03-13 18:33:25 +01:00
fix 'git bla' for .exe files
This commit is contained in:
committed by
Johannes Sixt
parent
4a4ae17738
commit
41dfee75f1
@@ -44,9 +44,11 @@ int execv_git_cmd(const char **argv)
|
||||
const char *exec_dir = paths[i];
|
||||
const char *tmp;
|
||||
|
||||
if (!exec_dir || !*exec_dir) continue;
|
||||
|
||||
#ifdef __MINGW32__
|
||||
if (*exec_dir != '/' && exec_dir[1] != ':') {
|
||||
#else
|
||||
if (*exec_dir != '/') {
|
||||
#endif
|
||||
if (!getcwd(git_command, sizeof(git_command))) {
|
||||
fprintf(stderr, "git: cannot determine "
|
||||
"current directory: %s\n",
|
||||
|
||||
Reference in New Issue
Block a user