Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F16924640
clone.py
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
427 B
Subscribers
None
clone.py
View Options
#!/usr/bin/python
# This trivial script demonstrates how to clone a remote repository.
#
# Example usage:
# python examples/clone.py git://github.com/jelmer/dulwich dulwich-clone
import
sys
from
getopt
import
getopt
from
dulwich
import
porcelain
opts
,
args
=
getopt
(
sys
.
argv
,
""
,
[])
opts
=
dict
(
opts
)
if
len
(
args
)
<
2
:
print
(
"usage:
%s
host:path path"
%
(
args
[
0
],
))
sys
.
exit
(
1
)
porcelain
.
clone
(
args
[
1
],
args
[
2
])
File Metadata
Details
Attached
Mime Type
text/x-python
Expires
Sat, Mar 21, 3:46 PM (2 d, 14 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3503900
Attached To
rPPDW python3-dulwich packaging
Event Timeline
Log In to Comment