Skip to content

Commit

Permalink
git-sh-setup.sh: Add an pwd() function for MinGW
Browse files Browse the repository at this point in the history
Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk>
Acked-by: Johannes Sixt <j6t@kdbg.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Ramsay Jones authored and Junio C Hamano committed Apr 18, 2012
1 parent e8dde3e commit be39048
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions git-sh-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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]:*)
Expand Down

0 comments on commit be39048

Please sign in to comment.