implemented fabric task to create and import gitlab repos authored by anarcat's avatar anarcat
......@@ -272,7 +272,8 @@ This is the part you need to do as a user to move to GitLab:
3. [file a ticket with TPA](https://gitlab.torproject.org/tpo/tpa/team/-/issues/new) to request a redirection. make sure
you mention both the path to the gitolite and GitLab repositories
That's it, you are done! The remaining steps will be executed by TPA.
That's it, you are done! The remaining steps will be executed by
TPA. (Note, if you are TPA, see the next section.)
Note that you can migrate multiple repositories at once by following
those steps multiple times. In that case, create a single ticket for
......@@ -315,9 +316,26 @@ redirections in the Git web interfaces, and document the change in
Gitolite.
WARNING: it assumes the repository has already been migrated! If you
are migrating a TPA repository, *do* make sure to first follow the
above procedure as the procedure below doesn't do anything to actually
mirror or archive the repository to GitLab (yet).
are migrating a TPA repository, or migrating a third party repository,
you can do the actual migration with this command:
fab gitlab.create-project \
-p $GITLAB_PROJECT \
--name "$GITLAB_PROJECT_NAME" \
--import-url https://git.torproject.org/$GITOLITE_REPO.git \
--description "Archive from Gitolite: $GITOLITE_DESCRIPTION"
If the repository is to be archived in GitLab, also provide the
`--archive` flag.
For example, this is an actual run:
fab gitlab.create-project \
-p tpo/tpa/dip \
--name "dip" \
--import-url https://git.torproject.org/admin/services/gitlab/dip.git \
--archive \
--description "Archive from Gitolite: Ansible recipe for running dip from debian salsa"
The procedure is this simple two-step process:
......
......