Page MenuHomeSoftware Heritage
Paste P185

load-git-disk.py
ActivePublic

Authored by ardumont on Oct 26 2017, 3:47 PM.
#!/usr/bin/env python3
import click
@click.command()
@click.option('--repo', help="git bare disk repository", required=1)
@click.option('--url', help="git bare disk's origin url", required=1)
def main(repo, url):
origin_url = url
import logging
logging.basicConfig(level=logging.DEBUG)
l = logging.getLogger('aqmp')
l.setLevel(logging.ERROR)
from swh.loader.git.tasks import LoadDiskGitRepository
t = LoadDiskGitRepository()
t.run(origin_url=origin_url, directory=repo,
date='2016-05-03T15:16:32+00:00')
if __name__ == '__main__':
main()