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/test/lib/helper.py | |
parent | 0d8269a04b2b03ebf53309399a8f0ea0a4822c11 (diff) | |
download | gitpython-6310480763cdf01d8816d0c261c0ed7b516d437a.tar.gz |
config, #525: polish more config-urls
Diffstat (limited to 'git/test/lib/helper.py')
-rw-r--r-- | git/test/lib/helper.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/git/test/lib/helper.py b/git/test/lib/helper.py index e3e7020c..80d1ae7a 100644 --- a/git/test/lib/helper.py +++ b/git/test/lib/helper.py @@ -214,7 +214,7 @@ def with_rw_and_rw_remote_repo(working_tree_ref): See working dir info in with_rw_repo :note: We attempt to launch our own invocation of git-daemon, which will be shutdown at the end of the test. """ - from git import Git, Remote + from git import Git, Remote # To avoid circular deps. assert isinstance(working_tree_ref, string_types), "Decorator requires ref name for working tree checkout" @@ -250,7 +250,7 @@ def with_rw_and_rw_remote_repo(working_tree_ref): base_path, rel_repo_dir = osp.split(remote_repo_dir) - remote_repo_url = "git://localhost:%s/%s" % (GIT_DAEMON_PORT, rel_repo_dir) + remote_repo_url = Git.polish_url("git://localhost:%s/%s" % (GIT_DAEMON_PORT, rel_repo_dir)) with d_remote.config_writer as cw: cw.set('url', remote_repo_url) @@ -342,7 +342,8 @@ class TestBase(TestCase): def _small_repo_url(self): """:return" a path to a small, clonable repository""" - return osp.join(self.rorepo.working_tree_dir, 'git/ext/gitdb/gitdb/ext/smmap') + from git.cmd import Git + return Git.polish_url(osp.join(self.rorepo.working_tree_dir, 'git/ext/gitdb/gitdb/ext/smmap')) @classmethod def setUpClass(cls): |