Revert "submodules: fix ambiguous absolute paths under Windows"

This reverts commit 4dce7d9b408b2935b85721b54a2010eda7ec1be9, 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 <kasal@ucw.cz> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Stepan Kasal committed May 8, 2014 at 22:36 UTC 0170a3c6ee7eba128d44dd50d0bf7a86d295c19e
1 file changed -3
git-submodule.sh
-3
@@ -285,9 +285,6 @@ module_clone()
285 # resolve any symlinks that might be present in $PWD
286 a=$(cd_to_toplevel && cd "$gitdir" && pwd)/
287 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
288 # Remove all common leading directories after a sanity check
289 if test "${a#$b}" != "$a" || test "${b#$a}" != "$b"; then
290 die "$(eval_gettext "Gitdir '\$a' is part of the submodule path '\$b' or vice versa")"