Merge branch 'rj/sh-setup-mswin-pwd'
authorJunio C Hamano <gitster@pobox.com>
Mon, 23 Apr 2012 20:01:46 +0000 (13:01 -0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 23 Apr 2012 20:01:46 +0000 (13:01 -0700)
By Ramsay Jones
* rj/sh-setup-mswin-pwd:
git-sh-setup.sh: Add an pwd() function for MinGW

git-sh-setup.sh
index 5d8e4e6c89f0471567a7aa1f07b054d8ac502e15..7b3ae75d7a631fb07404ab85fa6d43ada74d8512 100644 (file)
@@ -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]:*)