Skip to content
This repository was archived by the owner on Nov 9, 2017. It is now read-only.

Commit 7f165c3

Browse files
committed
Merge 'normalize-win-paths' into HEAD
2 parents f0b9e99 + a4e2fc7 commit 7f165c3

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

git-sh-setup.sh

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -308,10 +308,8 @@ case $(uname -s) in
308308
find () {
309309
/usr/bin/find "$@"
310310
}
311-
# git sees Windows-style pwd
312-
pwd () {
313-
builtin pwd -W
314-
}
311+
# Let pwd always return the uniqe real windows path
312+
alias pwd='pwd -W'
315313
is_absolute_path () {
316314
case "$1" in
317315
[/\\]* | [A-Za-z]:*)

git-submodule.sh

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -285,9 +285,6 @@ module_clone()
285285
# resolve any symlinks that might be present in $PWD
286286
a=$(cd_to_toplevel && cd "$gitdir" && pwd)/
287287
b=$(cd_to_toplevel && cd "$sm_path" && pwd)/
288-
# normalize Windows-style absolute paths to POSIX-style absolute paths
289-
case $a in [a-zA-Z]:/*) a=/${a%%:*}${a#*:} ;; esac
290-
case $b in [a-zA-Z]:/*) b=/${b%%:*}${b#*:} ;; esac
291288
# Remove all common leading directories after a sanity check
292289
if test "${a#$b}" != "$a" || test "${b#$a}" != "$b"; then
293290
die "$(eval_gettext "Gitdir '\$a' is part of the submodule path '\$b' or vice versa")"

0 commit comments

Comments
 (0)