From: Ramsay Jones Date: Tue, 17 Apr 2012 18:48:39 +0000 (+0100) Subject: git-sh-setup.sh: Add an pwd() function for MinGW X-Git-Tag: v1.7.11-rc0~1^2~1 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=be39048a7385157e4b7baabd3e64fe186b428ea1;p=git.git git-sh-setup.sh: Add an pwd() function for MinGW Signed-off-by: Ramsay Jones Acked-by: Johannes Sixt Signed-off-by: Junio C Hamano --- diff --git a/git-sh-setup.sh b/git-sh-setup.sh index 5d8e4e6c8..7b3ae75d7 100644 --- a/git-sh-setup.sh +++ b/git-sh-setup.sh @@ -248,6 +248,10 @@ case $(uname -s) in find () { /usr/bin/find "$@" } + # git sees Windows-style pwd + pwd () { + builtin pwd -W + } is_absolute_path () { case "$1" in [/\\]* | [A-Za-z]:*)