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

Commit 7bf15ca

Browse files
committed
Revert "submodules: fix ambiguous absolute paths under Windows"
This reverts commit 4dce7d9, which was originally done to help Windows but was almost immediately reverted in msysGit, and the codebase kept this unnecessary divergence for almost two years. Signed-off-by: Stepan Kasal <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent cd4f75f commit 7bf15ca

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

git-submodule.sh

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

0 commit comments

Comments
 (0)