summaryrefslogtreecommitdiff
path: root/git/test/test_remote.py
diff options
context:
space:
mode:
authorBenedikt Morbach <benedikt.morbach@googlemail.com>2015-04-21 13:45:02 +0200
committerBenedikt Morbach <benedikt.morbach@googlemail.com>2015-04-21 14:44:16 +0200
commitc1cedc5c417ddf3c2a955514dcca6fe74913259b (patch)
treee22cf0e02dacafafc1f2c2972e19ffb1d83ddd89 /git/test/test_remote.py
parentbccdb483aaa7235b85a49f2c208ee1befd2706dd (diff)
downloadgitpython-c1cedc5c417ddf3c2a955514dcca6fe74913259b.tar.gz
test: make git-daemon port configurable via env
add a GIT_PYTHON_TEST_GIT_DAEMON_PORT to set a port other than 9418, for example for when you already have a daemon running on that port.
Diffstat (limited to 'git/test/test_remote.py')
-rw-r--r--git/test/test_remote.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/git/test/test_remote.py b/git/test/test_remote.py
index c419ecee..af854988 100644
--- a/git/test/test_remote.py
+++ b/git/test/test_remote.py
@@ -8,7 +8,8 @@ from git.test.lib import (
TestBase,
with_rw_repo,
with_rw_and_rw_remote_repo,
- fixture
+ fixture,
+ GIT_DAEMON_PORT
)
from git import (
RemoteProgress,
@@ -250,7 +251,7 @@ class TestRemote(TestBase):
# must clone with a local path for the repo implementation not to freak out
# as it wants local paths only ( which I can understand )
other_repo = remote_repo.clone(other_repo_dir, shared=False)
- remote_repo_url = "git://localhost%s" % remote_repo.git_dir
+ remote_repo_url = "git://localhost:%s%s" % (GIT_DAEMON_PORT, remote_repo.git_dir)
# put origin to git-url
other_origin = other_repo.remotes.origin