FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Improved debug assertion to provide proper path on which to run a git… · jstacoder/GitPython@59879a4 · GitHub

Repository navigation

Commit 59879a4

Browse files
committed
Improved debug assertion to provide proper path on which to run a git daemon
1 parent e052409 commit 59879a4

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

‎git/test/lib/helper.py‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,9 +180,11 @@ def remote_repo_creator(self):
180180
except GitCommandError,e:
181181
print str(e)
182182
if os.name == 'nt':
183-
raise AssertionError('git-daemon needs to run this test, but windows does not have one. Otherwise, run: git-daemon "%s"'%tempfile.gettempdir())
183+
raise AssertionError('git-daemon needs to run this test, but windows does not have one. Otherwise, run: git-daemon "%s"' % os.path.dirname(_mktemp()))
184184
else:
185-
raise AssertionError('Please start a git-daemon to run this test, execute: git-daemon "%s"'%tempfile.gettempdir())
185+
raise AssertionError('Please start a git-daemon to run this test, execute: git-daemon "%s"' % os.path.dirname(_mktemp()))
186+
# END make assertion
187+
#END catch ls remote error
186188

187189
# adjust working dir
188190
prev_cwd = os.getcwd()

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL