diff options
author | Daniel Vetter <daniel.vetter@ffwll.ch> | 2018-08-29 17:25:24 +0200 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2018-08-30 15:21:15 +0200 |
commit | ba00087fddd729510687ea6d2efe723115423f5d (patch) | |
tree | 652072cebcb23da9601b88989b6e886e8a9f119d | |
parent | 766d0127467973494c7438cb767054d2c0f9772f (diff) |
dim: Migrate to Gitlab
- 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.
v3: Update all the urls in docs!
v4: Also update the new maintainer-tools repo in dim_uptodate (Jani).
Cc: Jani Nikula <jani.nikula@linux.intel.com>
Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
Cc: Daniel Stone <daniels@collabora.com>
Acked-by: Rodrigo Vivi <rodrigo.vivi@intel.com> (v2)
Reviewed-by: Daniel Stone <daniels@collabora.com> (v2)
Reviewed-by: Sean Paul <seanpaul@chromium.org> (v3)
Acked-by: Jani Nikula <jani.nikula@linux.intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
-rwxr-xr-x | dim | 14 | ||||
-rw-r--r-- | dim.rst | 3 | ||||
-rw-r--r-- | getting-started.rst | 4 |
3 files changed, 16 insertions, 5 deletions
@@ -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=( @@ -309,6 +311,8 @@ function dim_uptodate return 1 fi + git --git-dir=$DIM_PREFIX/maintainer-tools/.git fetch -q + if ! git --git-dir=$DIM_PREFIX/maintainer-tools/.git show "@{upstream}:dim" |\ diff "$using" - >& /dev/null; then echoerr "not running upstream version of the script." @@ -2028,6 +2032,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 @@ -2124,7 +2136,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 @@ -29,8 +29,7 @@ the drm-intel_ and drm-misc_ git repositories. This man page is a command-line reference for the tool only; for more comprehensive documentation, including a getting started guide, see https://01.org/linuxgraphics/gfx-docs/maintainer-tools/index.html, or the same -in source form in the maintainer-tools branch of the drm-tip repository at -https://cgit.freedesktop.org/drm/drm-tip/log/?h=maintainer-tools. +in source form at https://gitlab.freedesktop.org/drm/maintainer-tools. .. _drm-intel: drm-intel.html .. _drm-misc: drm-misc.html diff --git a/getting-started.rst b/getting-started.rst index d035862e3970..5d4ce9c1991e 100644 --- a/getting-started.rst +++ b/getting-started.rst @@ -6,11 +6,11 @@ For getting started grab the latest dim (drm-intel-maintainer) script from:: - http://cgit.freedesktop.org/drm-tip/tree/dim?h=maintainer-tools + https://gitlab.freedesktop.org/drm/maintainer-tools/raw/master/dim There's also a sample config file for ~/.dimrc:: - http://cgit.freedesktop.org/drm-tip/tree/dimrc.sample?h=maintainer-tools + https://gitlab.freedesktop.org/drm/maintainer-tools/raw/master/dimrc.sample Plus, there's bash completion in the same directory if you feel like using that. Run:: |