We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 00dd78b commit 825f3e4Copy full SHA for 825f3e4
test/test_repository.py
@@ -519,7 +519,12 @@ def test_clone_bare_repository(self):
519
def test_clone_repository_and_remote_callbacks(self):
520
src_repo_relpath = "./test/data/testrepo.git/"
521
repo_path = os.path.join(self._temp_dir, "clone-into")
522
- url = 'file:' + pathname2url(os.path.realpath(src_repo_relpath))
+ url = pathname2url(os.path.realpath(src_repo_relpath))
523
+
524
+ if url.startswith('///'):
525
+ url = 'file:' + url
526
+ else:
527
+ url = 'file://' + url
528
529
def create_repository(path, bare):
530
return init_repository(path, bare)
0 commit comments