test: use file:// url for git repos

This commit is contained in:
Ben Boeckel 2016-02-17 09:50:43 -05:00
parent bdf82246f7
commit bae97d17d0

View file

@ -103,6 +103,8 @@ class MockGitRepo(MockVCSRepo):
def __init__(self):
super(MockGitRepo, self).__init__('mock-git-stage', 'mock-git-repo')
self.url = 'file://' + self.path
with working_dir(self.path):
git('init')
@ -140,8 +142,6 @@ def __init__(self):
self.r1 = self.rev_hash(self.branch)
self.r1_file = self.branch_file
self.url = self.path
def rev_hash(self, rev):
return git('rev-parse', rev, output=str).strip()