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:
Johannes Sixt
2007-05-24 10:54:08 +02:00
parent eba4aff8fe
commit dafd0c5fec

View File

@@ -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
}