summaryrefslogtreecommitdiff
path: root/git/objects
diff options
context:
space:
mode:
authorCharles Bouchard-Légaré <charles.bouchard-legare@optelgroup.com>2017-11-16 15:07:47 -0500
committerCharles Bouchard-Légaré <charles.bouchard-legare@optelgroup.com>2017-11-16 15:07:47 -0500
commit280e573beb90616fe9cb0128cec47b3aff69b86a (patch)
treedf3756ba28864f3bddf7e6ebc14d644a6abbcfa4 /git/objects
parentbfae362363b28be9b86250eb7f6a32dac363c993 (diff)
downloadgitpython-280e573beb90616fe9cb0128cec47b3aff69b86a.tar.gz
Remove trailing slash on drive path
Diffstat (limited to 'git/objects')
-rw-r--r--git/objects/submodule/base.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/git/objects/submodule/base.py b/git/objects/submodule/base.py
index dc4ee3c6..33151217 100644
--- a/git/objects/submodule/base.py
+++ b/git/objects/submodule/base.py
@@ -278,7 +278,7 @@ class Submodule(IndexObject, Iterable, Traversable):
if not path.startswith(working_tree_linux):
raise ValueError("Submodule checkout path '%s' needs to be within the parents repository at '%s'"
% (working_tree_linux, path))
- path = path[len(working_tree_linux) + 1:]
+ path = path[len(working_tree_linux.rstrip('/')) + 1:]
if not path:
raise ValueError("Absolute submodule path '%s' didn't yield a valid relative path" % path)
# end verify converted relative path makes sense