summaryrefslogtreecommitdiff
path: root/test/testlib/helper.py
diff options
context:
space:
mode:
authorSebastian Thiel <byronimo@gmail.com>2009-11-05 21:20:10 +0100
committerSebastian Thiel <byronimo@gmail.com>2009-11-05 21:20:10 +0100
commit555b0efc2c19aa8cf7c548b4097bd20a73f572ca (patch)
treebfbd4bcfc294bda8d65ca0774d4ad2b871f3cf03 /test/testlib/helper.py
parent4e99d9ab2acfaf2ebb4b150736590d6a4e33f449 (diff)
downloadgitpython-555b0efc2c19aa8cf7c548b4097bd20a73f572ca.tar.gz
repo.clone: Added plenty of special handling to allow drive letters to work as expected. Its quite terrible to see a two-line method inflate to 20
as there is no git-daemon on windows, some tests will not work. The error message has been adjusted to be more precise for the poor people trying to run the tests on windows ( including myself )
Diffstat (limited to 'test/testlib/helper.py')
-rw-r--r--test/testlib/helper.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/testlib/helper.py b/test/testlib/helper.py
index 5599f05e..e9a15d5c 100644
--- a/test/testlib/helper.py
+++ b/test/testlib/helper.py
@@ -176,7 +176,10 @@ def with_rw_and_rw_remote_repo(working_tree_ref):
rw_repo.git.ls_remote(d_remote)
except GitCommandError,e:
print str(e)
- raise AssertionError('Please start a git-daemon to run this test, execute: git-daemon "%s"'%tempfile.gettempdir())
+ if os.name == 'nt':
+ raise AssertionError('git-daemon needs to run this test, but windows does not have one. Otherwise, run: git-daemon "%s"'%tempfile.gettempdir())
+ else:
+ raise AssertionError('Please start a git-daemon to run this test, execute: git-daemon "%s"'%tempfile.gettempdir())
try:
return func(self, rw_repo, rw_remote_repo)