diff options
author | Kostis Anagnostopoulos <ankostis@gmail.com> | 2016-10-12 17:09:16 +0200 |
---|---|---|
committer | Kostis Anagnostopoulos <ankostis@gmail.com> | 2016-10-12 23:31:43 +0200 |
commit | 6310480763cdf01d8816d0c261c0ed7b516d437a (patch) | |
tree | 97467ccccbc1fcfc3563cba9ff5acf57f2b360dd /git/objects/submodule/base.py | |
parent | 0d8269a04b2b03ebf53309399a8f0ea0a4822c11 (diff) | |
download | gitpython-6310480763cdf01d8816d0c261c0ed7b516d437a.tar.gz |
config, #525: polish more config-urls
Diffstat (limited to 'git/objects/submodule/base.py')
-rw-r--r-- | git/objects/submodule/base.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/git/objects/submodule/base.py b/git/objects/submodule/base.py index 999c452b..9bb563d7 100644 --- a/git/objects/submodule/base.py +++ b/git/objects/submodule/base.py @@ -41,6 +41,7 @@ import uuid from unittest.case import SkipTest from git.util import HIDE_WINDOWS_KNOWN_ERRORS from git.objects.base import IndexObject, Object +from git.cmd import Git __all__ = ["Submodule", "UpdateProgress"] @@ -394,6 +395,9 @@ class Submodule(IndexObject, Iterable, Traversable): mrepo = cls._clone_repo(repo, url, path, name, **kwargs) # END verify url + ## See #525 for ensuring git urls in config-files valid under Windows. + url = Git.polish_url(url) + # It's important to add the URL to the parent config, to let `git submodule` know. # otherwise there is a '-' character in front of the submodule listing # a38efa84daef914e4de58d1905a500d8d14aaf45 mymodule (v0.9.0-1-ga38efa8) |