Clone from the <emphasis>Git-Vcs</emphasis> URL of a package:
</para>
<screen>
- &gbp-clone; vcsgit:libvirt</screen>
+ &gbp-clone; vcsgit:libvirt</screen>
<para>
+ Clone a repository from salsa (Debian's code hosting):
+ </para>
+ <screen>
+ &gbp-clone; salsa:agx/git-buildpackage</screen>
+ <para>
Clone from a github repository:
</para>
<screen>
"""
>>> repo_to_url("https://foo.example.com")
'https://foo.example.com'
+ >>> repo_to_url("salsa:agx/git-buildpackage")
+ 'https://salsa.debian.org/agx/git-buildpackage.git'
>>> repo_to_url("github:agx/git-buildpackage")
'https://github.com/agx/git-buildpackage.git'
"""
else:
proto, path = parts
+ if proto == 'salsa':
+ return 'https://salsa.debian.org/%s.git' % path
if proto == 'github':
return 'https://github.com/%s.git' % path
elif proto in ['vcsgit', 'vcs-git']: