summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoe Savage <jasavage@silabs.com>2019-05-21 10:00:50 -0500
committerSebastian Thiel <byronimo@gmail.com>2019-07-20 18:17:05 +0800
commit6df6d41835cd331995ad012ede3f72ef2834a6c5 (patch)
treec79f55466bd8805b2eaeb04db6a2a64f9cf98fcd
parentb50b96032094631d395523a379e7f42a58fe8168 (diff)
downloadgitpython-6df6d41835cd331995ad012ede3f72ef2834a6c5.tar.gz
normalize path after joining submodule path and the relative path to the git dir, to eliminate path length errors on Windows
-rw-r--r--git/repo/fun.py2
1 files changed, 1 insertions, 1 deletions
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