diff options
author | Sebastian Thiel <byronimo@gmail.com> | 2010-11-20 18:33:43 +0100 |
---|---|---|
committer | Sebastian Thiel <byronimo@gmail.com> | 2010-11-20 20:17:32 +0100 |
commit | 8f24f9540afc0db61d197bc4932697737bff1506 (patch) | |
tree | cccf958a2c1a0907869342ca872ff17b44e7e9bb /lib/git/objects/submodule/base.py | |
parent | 8e0e315a371cdfc80993a1532f938d56ed7acee4 (diff) | |
download | gitpython-8f24f9540afc0db61d197bc4932697737bff1506.tar.gz |
Submodule: Assured we properly convert paths to using the slash separator
Diffstat (limited to 'lib/git/objects/submodule/base.py')
-rw-r--r-- | lib/git/objects/submodule/base.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/git/objects/submodule/base.py b/lib/git/objects/submodule/base.py index 403b2e18..7cc47e4b 100644 --- a/lib/git/objects/submodule/base.py +++ b/lib/git/objects/submodule/base.py @@ -211,6 +211,12 @@ class Submodule(util.IndexObject, Iterable, Traversable): path = path[:-1] # END handle trailing slash + # assure we never put backslashes into the url, as some operating systems + # like it ... + if url != None: + url = to_native_path_linux(url) + #END assure url correctness + # INSTANTIATE INTERMEDIATE SM sm = cls(repo, cls.NULL_BIN_SHA, cls.k_default_mode, path, name) if sm.exists(): |