Changes
Page history
implemented fabric task to create and import gitlab repos
authored
Apr 04, 2024
by
anarcat
Show whitespace changes
Inline
Side-by-side
howto/git.md
View page @
1ff93ad1
...
@@ -272,7 +272,8 @@ This is the part you need to do as a user to move to GitLab:
...
@@ -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
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
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
Note that you can migrate multiple repositories at once by following
those steps multiple times. In that case, create a single ticket for
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
...
@@ -315,9 +316,26 @@ redirections in the Git web interfaces, and document the change in
Gitolite.
Gitolite.
WARNING: it assumes the repository has already been migrated! If you
WARNING: it assumes the repository has already been migrated! If you
are migrating a TPA repository,
*do*
make sure to first follow the
are migrating a TPA repository, or migrating a third party repository,
above procedure as the procedure below doesn't do anything to actually
you can do the actual migration with this command:
mirror or archive the repository to GitLab (yet).
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:
The procedure is this simple two-step process:
...
...
...
...