Skip to content

Commit

Permalink
add mirror to git clone
Browse files Browse the repository at this point in the history
  • Loading branch information
pirate committed Jan 13, 2019
1 parent c5dcb68 commit 321cded
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion archivebox/archive_methods.py
Original file line number Diff line number Diff line change
Expand Up @@ -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=' ')
Expand Down

0 comments on commit 321cded

Please sign in to comment.