Can someone explain why if I use c:/some/path as an argument to git clone, it fails. But if I use /cygdrive/c/some/path it works.

Here is an example:

GIT_TRACE=1 git clone c:/Users/hoffman/Work/My\ Builds/CMake-gmake/Tests/ExternalProject/LocalRepositories/GIT foobar trace: built-in: git 'clone' 'c:/Users/hoffman/Work/My Builds/CMake-gmake/Tests/ExternalProject/LocalRepositories/GIT' 'foobar' Initialized empty Git repository in /cygdrive/c/Users/hoffman/Work/My Builds/CMake-gmake/f/foobar/.git/ fatal: failed to open '/cygdrive/c/Users/hoffman/Work/My Builds/CMake-gmake/f/c:/Users/hoffman/Work/My Builds/CMake-gmake/Tests/ExternalProject/LocalRepositories/GIT/objects': No such file or directory

Somehow, the path has been duplicated one with /cygdrive/c and one without and the two of the smashed together???



This works:
$ GIT_TRACE=1 git clone /cygdrive/c/Users/hoffman/Work/My\ Builds/CMake-gmake/Tests/ExternalProject/LocalRepositories/GIT foobar trace: built-in: git 'clone' '/cygdrive/c/Users/hoffman/Work/My Builds/CMake-gmake/Tests/ExternalProject/LocalRepositories/GIT' 'foobar' Initialized empty Git repository in /cygdrive/c/Users/hoffman/Work/My Builds/CMake-gmake/f/foobar/.git/ trace: run_command: 'git-upload-pack '\''/cygdrive/c/Users/hoffman/Work/My Builds/CMake-gmake/Tests/ExternalProject/LocalRepositories/GIT'\''' trace: exec: 'sh' '-c' 'git-upload-pack '\''/cygdrive/c/Users/hoffman/Work/My Builds/CMake-gmake/Tests/ExternalProject/LocalRepositories/GIT'\''' 'git-upload-pack '\''/cygdrive/c/Users/hoffman/Work/My Builds/CMake-gmake/Tests/ExternalProject/LocalRepositories/GIT'\'''


Any ideas?

Thanks.

-Bill

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

Reply via email to