diff options
author | Sebastian Thiel <byronimo@gmail.com> | 2017-11-19 16:03:37 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-19 16:03:37 +0100 |
commit | a2cd130bed184fe761105d60edda6936f348edc6 (patch) | |
tree | 3e463012cf8fa4bd540e558f2f84f386a244b0a5 /git/objects | |
parent | 28cbb953ce01b4eea7f096c28f84da1fbab26694 (diff) | |
parent | 280e573beb90616fe9cb0128cec47b3aff69b86a (diff) | |
download | gitpython-a2cd130bed184fe761105d60edda6936f348edc6.tar.gz |
Merge pull request #697 from cblegare/master
Remove trailing slash on drive path
Diffstat (limited to 'git/objects')
-rw-r--r-- | git/objects/submodule/base.py | 2 |
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 |