Subject: Switching aports origin to GitLab

From: Carlo Landmeter <[email-masked]>
Date: Sun, 15 Mar 2020 16:53:39 +0100

Dear Developers,

As Kevin pointed out few days ago [1] the Alpine Linux Infra team is going to
switch the git origin of aports from our git.alpinelinux.org source to our
GitLab instance. We are planning to do this on Monday the 16th of March 2020.
This means that developers will need to update the remotes of their local
aports repositories to the one from GitLab [2].

We are planning to keep git.alpinelinux.org as a mirror described in the issue
on GitLab [3].

To update your remote you can follow the steps described in [4].

For questions or remark use this email or the issue as mentioned in [3].

Alpine Linux Infra team.

1. https://lists.alpinelinux.org/~alpine/devel/%3C20200303222506.GB1323425%40alpha%3E
2. [email-masked]:alpine/aports.git
3. https://gitlab.alpinelinux.org/alpine/infra/infra/issues/10675
4. https://stackoverflow.com/questions/2432764/how-to-change-the-uri-url-for-a-remote-git-repository

---

From: Kevin Daudt <[email-masked]>
Date: Mon, 16 Mar 2020 21:05:59 +0100

> 4. https://stackoverflow.com/questions/2432764/how-to-change-the-uri-url-for-a-remote-git-repository

Hello all,

The switch has been made, so please update the remote you push to if you
have not done so yet to [email-masked]/alpine/aports.git'.

Alpine Linux Infra team.

---

From: Natanael Copa <[email-masked]>
Date: Tue, 17 Mar 2020 08:38:14 +0100

On Mon, 16 Mar 2020 21:05:59 +0100

> have not done so yet to [email-masked]/alpine/aports.git'.

Awesome! Thank you very much for the good work you do!

-nc

---

From: Natanael Copa <[email-masked]>
Date: Tue, 17 Mar 2020 10:05:00 +0100

> have not done so yet to [email-masked]/alpine/aports.git'.

fatal: [email-masked]/alpine/aports.git' does not appear to be a git repository
fatal: Could not read from remote repository.

But you don't need to fetch over ssh, so you can do:

  git remote set-url origin https://gitlab.alpinelinux.org/alpine/aports.git
  git remote set-url origin --push [email-masked]:alpine/aports.git

-nc

---

From: Carlo Landmeter <[email-masked]>
Date: Tue, 17 Mar 2020 10:45:02 +0100

Hi Natanael,

> fatal: Could not read from remote repository.

The url needs to have a colon like: [email-masked]:alpine/aports.git

>   git remote set-url origin --push [email-masked]:alpine/aports.git

Cloning from https should be fine.

carlo