Browse Source

add mirror to git clone

Nick Sweeting 7 years ago
parent
commit
321cdeda11
1 changed files with 1 additions and 1 deletions
  1. 1 1
      archivebox/archive_methods.py

+ 1 - 1
archivebox/archive_methods.py

@@ -518,7 +518,7 @@ def fetch_git(link_dir, link, timeout=TIMEOUT):
     if os.path.exists(os.path.join(link_dir, 'git')):
         return {'output': 'git', 'status': 'skipped'}
 
-    CMD = ['git', 'clone', '--recursive', link['url'], 'git']
+    CMD = ['git', 'clone', '--mirror', '--recursive', link['url'], 'git']
     output = 'git'
 
     end = progress(timeout, prefix='      ')