Skip to content

Commit be39048

Browse files
Ramsay Jonesgitster
authored andcommitted
git-sh-setup.sh: Add an pwd() function for MinGW
Signed-off-by: Ramsay Jones <[email protected]> Acked-by: Johannes Sixt <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent e8dde3e commit be39048

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

git-sh-setup.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,10 @@ case $(uname -s) in
248248
find () {
249249
/usr/bin/find "$@"
250250
}
251+
# git sees Windows-style pwd
252+
pwd () {
253+
builtin pwd -W
254+
}
251255
is_absolute_path () {
252256
case "$1" in
253257
[/\\]* | [A-Za-z]:*)

0 commit comments

Comments
 (0)