Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Paste
P185
load-git-disk.py
Active
Public
Actions
Authored by
ardumont
on Oct 26 2017, 3:47 PM.
Edit Paste
Archive Paste
View Raw File
Subscribe
Mute Notifications
Award Token
Flag For Later
Tags
None
Subscribers
None
#!/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
()
Event Timeline
ardumont
created this paste.
Oct 26 2017, 3:47 PM
2017-10-26 15:47:43 (UTC+2)
ardumont
mentioned this in
T819: Gitorious import: ObjectFormatException raised when badly formatted tag object exists in the repository
.
ardumont
mentioned this in
T816: Gitorious import: loose object parsing error with corrupted file as empty one
.
ardumont
mentioned this in
T815: Gitorious import: Release time conversion issue when no release date is provided
.
Log In to Comment