Skip to content

Commit 7bc59ab

Browse files
committed
Improved debug assertion to provide proper path on which to run a git daemon
1 parent 24bc841 commit 7bc59ab

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

git/test/lib/helper.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,9 +165,11 @@ def remote_repo_creator(self):
165165
except GitCommandError,e:
166166
print str(e)
167167
if os.name == 'nt':
168-
raise AssertionError('git-daemon needs to run this test, but windows does not have one. Otherwise, run: git-daemon "%s"'%tempfile.gettempdir())
168+
raise AssertionError('git-daemon needs to run this test, but windows does not have one. Otherwise, run: git-daemon "%s"' % os.path.dirname(_mktemp()))
169169
else:
170-
raise AssertionError('Please start a git-daemon to run this test, execute: git-daemon "%s"'%tempfile.gettempdir())
170+
raise AssertionError('Please start a git-daemon to run this test, execute: git-daemon "%s"' % os.path.dirname(_mktemp()))
171+
# END make assertion
172+
#END catch ls remote error
171173

172174
# adjust working dir
173175
prev_cwd = os.getcwd()

0 commit comments

Comments
 (0)