mirror of
https://github.com/git/git.git
synced 2026-03-13 10:23:30 +01:00
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.
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user