summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStepan Kasal <kasal@ucw.cz>2014-05-08 22:36:57 +0200
committerJunio C Hamano <gitster@pobox.com>2014-05-08 13:57:11 -0700
commit0170a3c6ee7eba128d44dd50d0bf7a86d295c19e (patch)
treeed597ddda53819a66917e521168c8910bd9e2e99
parent7bbc4e8fdb33e0a8e42e77cc05460d4c4f615f4d (diff)
downloadgit-sk/submodules-absolute-path-on-windows.tar.gz
Revert "submodules: fix ambiguous absolute paths under Windows"sk/submodules-absolute-path-on-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>
-rwxr-xr-xgit-submodule.sh3
1 files changed, 0 insertions, 3 deletions
diff --git a/git-submodule.sh b/git-submodule.sh
index 66f5f752c5..821e6d47cf 100755
--- a/git-submodule.sh
+++ b/git-submodule.sh
@@ -285,9 +285,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")"