test: use file:// url for git repos
This commit is contained in:
parent
bdf82246f7
commit
bae97d17d0
1 changed files with 2 additions and 2 deletions
|
@ -103,6 +103,8 @@ class MockGitRepo(MockVCSRepo):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
super(MockGitRepo, self).__init__('mock-git-stage', 'mock-git-repo')
|
super(MockGitRepo, self).__init__('mock-git-stage', 'mock-git-repo')
|
||||||
|
|
||||||
|
self.url = 'file://' + self.path
|
||||||
|
|
||||||
with working_dir(self.path):
|
with working_dir(self.path):
|
||||||
git('init')
|
git('init')
|
||||||
|
|
||||||
|
@ -140,8 +142,6 @@ def __init__(self):
|
||||||
self.r1 = self.rev_hash(self.branch)
|
self.r1 = self.rev_hash(self.branch)
|
||||||
self.r1_file = self.branch_file
|
self.r1_file = self.branch_file
|
||||||
|
|
||||||
self.url = self.path
|
|
||||||
|
|
||||||
def rev_hash(self, rev):
|
def rev_hash(self, rev):
|
||||||
return git('rev-parse', rev, output=str).strip()
|
return git('rev-parse', rev, output=str).strip()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue