delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-SWARE-Spam-Status: | No, hits=-1.9 required=5.0 tests=BAYES_00 |
X-Spam-Check-By: | sourceware.org |
Message-ID: | <4C080A98.8090004@kitware.com> |
Date: | Thu, 03 Jun 2010 16:03:36 -0400 |
From: | Bill Hoffman <bill DOT hoffman AT kitware DOT com> |
User-Agent: | Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.9) Gecko/20100317 Lightning/1.0b1 Thunderbird/3.0.4 |
MIME-Version: | 1.0 |
To: | cygwin AT cygwin DOT com |
Subject: | C: vs /cygdrive/c and git |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |