[PATCH] Migrate to Gitlab
Daniel Vetter
daniel.vetter at ffwll.ch
Wed Aug 29 08:27:05 UTC 2018
On Tue, Aug 28, 2018 at 9:31 PM, Daniel Vetter <daniel.vetter at ffwll.ch> wrote:
> - Use the https url so we don't require everyone to have their gitlab
> accounts ready already. Otherwise we'd need to gate migrating
> maintainer-tools on migrating all the drm kernel repos, and I'd
> really like to partition the migration. Also, we want to reduce
> maintainer-tools committers anyway, to shrink the attack surface a
> lot.
>
> Committers need to either set up the http access tokens, or set up
> ssh certificates and change their remote for the maintainer-tools
> repo.
>
> - For testing, you can undo this auto-update using
>
> $ git remote remove maintainer-tools ; git branch -u drm-tip/maintainer-tools
>
> - My plan is that we push an immediate revert of this code to the
> gitlab repo (and only there) so it doesn't stick around.
>
> - fd.o admins recommended that we don't do a read-only copy of
> maintaienr-tools at the old-place, since it's not a 1:1 match. For
> everything else we're going to migrate there will be a read-only
> copy with all urls working nicely, maintainer-tools is the only
> exception here.
>
> v2: Don't forget about dim_setup.
>
> Signed-off-by: Daniel Vetter <daniel.vetter at intel.com>
Forgotten one really important part: For the gitlab repo we have the
following five people with commit rights:
Jani, Rodrigo, Sean, Lucas & me. That's simply the top 5 contributors
to maintainer-tools of the past year. Jani&Rodrigo also have
maintainer powers, which can be used to add more people as you folks
see fit.
Long term we might want to have a discussion/documentation for this,
but in practice I don't think it matters. Even if you look at the
entire history and everyone who pushed more than 5 patches there's no
one else as committer candidate for maintainer-tools.
-Daniel
> ---
> dim | 12 +++++++++++-
> 1 file changed, 11 insertions(+), 1 deletion(-)
>
> diff --git a/dim b/dim
> index 5040d6b046b2..a4050870503d 100755
> --- a/dim
> +++ b/dim
> @@ -76,6 +76,8 @@ dim=$(basename $0)
> dim_today=$(date +%Y-%m-%d)
> dim_timestamp="$(date --utc +%Yy-%mm-%dd-%Hh-%Mm-%Ss) UTC"
>
> +maintainer_tools_https=https://gitlab.freedesktop.org/drm/maintainer-tools.git
> +
> # Recipients for all dim based pull requests.
> # Add To: lines to the end, Cc: lines in the beginning with -c.
> dim_pull_request_recipients=(
> @@ -1996,6 +1998,14 @@ function dim_update_branches
> fi
>
> cd $DIM_PREFIX/maintainer-tools
> + if ! git remote | grep -q '^maintainer-tools$' ; then
> + git remote add maintainer-tools $maintainer_tools_https
> + git fetch maintainer-tools
> + git branch --set-upstream-to=maintainer-tools/master
> + else
> + echo "Maintainer tools already migrated."
> + fi
> +
> if git_is_current_branch maintainer-tools ; then
> echo "Updating maintainer-tools ..."
> git pull --rebase
> @@ -2092,7 +2102,7 @@ function dim_setup
>
> cd $DIM_PREFIX
>
> - setup_aux_checkout maintainer-tools $drm_tip_ssh maintainer-tools
> + setup_aux_checkout maintainer-tools $maintainer_tools_https maintainer-tools
>
> setup_aux_checkout rerere-cache $drm_tip_ssh drm-rerere
>
> --
> 2.18.0
>
--
Daniel Vetter
Software Engineer, Intel Corporation
+41 (0) 79 365 57 48 - http://blog.ffwll.ch
More information about the dim-tools
mailing list