mpyne closed this revision.
mpyne added a comment.
I have committed the doc fix (and maintained your authorship). I expect that
we will be able to automatically migrate git modules to the new location if it
is decided to use Gitlab for all KDE git repositories, but in the meantime it
does require manually running some git commands.
The right sequence is probably something like:
git config --global --add url.https://invent.kde.org/kde/.insteadOf invent:
git config --global --add [email protected]:kde/.pushInsteadOf invent:
git remote set-url origin invent:kdesrc-build
git remote -v
# Should look like
# origin https://invent.kde.org/kde/kdesrc-build (fetch)
# origin [email protected]:kde/kdesrc-build (push)
git fetch origin
The `git-config` commands add a new `invent:` URL prefix that Git can use,
similar to the `kde:` you probably already have. This is available globally (I
couldn't make it work as a local repository setting).
The `git-remote` commands are used to change the location Git is looking for
source to the Gitlab. The second command shows what the updated setting is,
which should look as indicated in the code block above.
The final command causes Git to make the first network update to Gitlab,
which may give a warning about a forced update or a redirection to a new URL.
REPOSITORY
R365 kdesrc-build
REVISION DETAIL
https://phabricator.kde.org/D20174
To: yurchor, mpyne
Cc: aacid, kde-doc-english, gennad, skadinna