[Debichem-devel] FYI: Moving packages from git.debian.org to salsa.debian.org

Daniel Leidert dleidert at debian.org
Mon Feb 5 18:01:00 UTC 2018


Hi,

Git repositories from git.debian.org can easily be imported to
salsa.debian.org. Either manually by using the interface at salsa.d.o
(New project > Import project > Repo by URL) [1] or by using its API
[2]. For the latter you need to create a private token [3] and then
simply use:

curl --request POST --header "PRIVATE-TOKEN: <TOKEN>" \
     --data "path=<PROJECT>&namespace_id=2227&description=<DESCRIPTION>&import_url=https://anonscm.debian.org/git/debichem/<PROJECT>.git&visibility=public" \
     https://salsa.debian.org/api/v4/projects

to import a debichem project from git.d.o into the debichem team
(namespace_id 2227) at salsa.d.o.

Replace:

<TOKEN> with your generated private token
<PROJECT> with the project to import
<DESCRIPTION> with the repositories description
(probably `cat <PROJECT>/.git/description`)

Please note, that description files are *not* copied when doing a `git
clone'. So maybe you need to view the description at

https://anonscm.debian.org/git/<PROJECT>.git/description

If for whatever reason you want to import the project into a different
place, say debian-science or your private space, you can use [4] to get
the correct namespace_id (make sure, you are logged in).

[1] https://salsa.debian.org/projects/new
[2] https://wiki.debian.org/Salsa/Doc#Import_git_repository
[3] https://salsa.debian.org/profile/personal_access_tokens
[4] https://salsa.debian.org/api/v4/namespaces

HTH and regards, Daniel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part
URL: <http://lists.alioth.debian.org/pipermail/debichem-devel/attachments/20180205/f3b7cc1e/attachment.sig>


More information about the Debichem-devel mailing list