Use file:// protocol for cloning under test

This commit is contained in:
Anthony Sottile
2017-09-22 10:25:02 -07:00
parent e76bc17f53
commit 989bcfe9ca
4 changed files with 7 additions and 3 deletions

View File

@@ -83,7 +83,7 @@ def config_with_local_hooks():
def make_config_from_repo(repo_path, sha=None, hooks=None, check=True):
manifest = load_manifest(os.path.join(repo_path, C.MANIFEST_FILE))
config = OrderedDict((
('repo', repo_path),
('repo', 'file://{}'.format(repo_path)),
('sha', sha or get_head_sha(repo_path)),
(
'hooks',