From dafd0c5fece221379cf9f515e58c31dc1e44e339 Mon Sep 17 00:00:00 2001 From: Johannes Sixt Date: Thu, 24 May 2007 10:54:08 +0200 Subject: [PATCH] Fix local clone on MinGW: absolute paths must use the drive letter. The default of pwd of MSYS's bash and /bin/pwd are to use /c/rest/of/path notation instead of c:/rest/of/path. But the former is not supported by programs that use the standard C runtime (instead of MinGW's own runtime). Hence, we must make sure that only drive letter notations are generated by using pwd's -W option. --- git-clone.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/git-clone.sh b/git-clone.sh index 8e087a4793..1ff9f2987b 100755 --- a/git-clone.sh +++ b/git-clone.sh @@ -19,11 +19,11 @@ usage() { get_repo_base() { ( - cd "`/bin/pwd`" && + cd "`/bin/pwd -W`" && cd "$1" && { cd .git - pwd + pwd -W } ) 2>/dev/null }