fix 'git bla' for .exe files

This commit is contained in:
Johannes Schindelin
2006-09-19 15:09:40 +02:00
committed by Johannes Sixt
parent 4a4ae17738
commit 41dfee75f1

View File

@@ -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",