Merge branch 'sk/submodules-absolute-path-on-windows'
authorJunio C Hamano <gitster@pobox.com>
Fri, 6 Jun 2014 18:26:38 +0000 (11:26 -0700)
committerJunio C Hamano <gitster@pobox.com>
Fri, 6 Jun 2014 18:26:38 +0000 (11:26 -0700)
* sk/submodules-absolute-path-on-windows:
Revert "submodules: fix ambiguous absolute paths under Windows"

git-submodule.sh
index b55d83ac46a96ba15fb7ac8cb43b8c279b40d119..e146b833d163ab58984fec3d6fb9f45b148e0171 100755 (executable)
@@ -291,9 +291,6 @@ module_clone()
        # resolve any symlinks that might be present in $PWD
        a=$(cd_to_toplevel && cd "$gitdir" && pwd)/
        b=$(cd_to_toplevel && cd "$sm_path" && pwd)/
-       # normalize Windows-style absolute paths to POSIX-style absolute paths
-       case $a in [a-zA-Z]:/*) a=/${a%%:*}${a#*:} ;; esac
-       case $b in [a-zA-Z]:/*) b=/${b%%:*}${b#*:} ;; esac
        # Remove all common leading directories after a sanity check
        if test "${a#$b}" != "$a" || test "${b#$a}" != "$b"; then
                die "$(eval_gettext "Gitdir '\$a' is part of the submodule path '\$b' or vice versa")"