From 6df6d41835cd331995ad012ede3f72ef2834a6c5 Mon Sep 17 00:00:00 2001 From: Joe Savage Date: Tue, 21 May 2019 10:00:50 -0500 Subject: normalize path after joining submodule path and the relative path to the git dir, to eliminate path length errors on Windows --- git/repo/fun.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'git') diff --git a/git/repo/fun.py b/git/repo/fun.py index 6aefd9d6..5a47fff3 100644 --- a/git/repo/fun.py +++ b/git/repo/fun.py @@ -86,7 +86,7 @@ def find_submodule_git_dir(d): ## Cygwin creates submodules prefixed with `/cygdrive/...` suffixes. path = decygpath(path) if not osp.isabs(path): - path = osp.join(osp.dirname(d), path) + path = osp.normpath(osp.join(osp.dirname(d), path)) return find_submodule_git_dir(path) # end handle exception return None -- cgit v1.2.1