Skip to content

Commit 3aeb71b

Browse files
committed
Handle file:// URLs. Close #37
1 parent ce44ffe commit 3aeb71b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

common.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -381,6 +381,10 @@ def fetch(name, url):
381381
else:
382382
with cwd(name):
383383
execute('git', 'pull')
384+
elif url.startswith('file'):
385+
if not path.exists(name):
386+
_, src = url.split('://')
387+
copytree(src, name)
384388
else:
385389
panic('URL "%s" not recognized!', url)
386390

0 commit comments

Comments
 (0)