Page MenuHomePhabricator

Changing the Git remote of a repository locks it
Closed, DeclinedPublic

Description

The ZUULCONF repository was pointing to the Github URL https://github.com/wikimedia/integration-zuul-config.git

I changed it to point to the Gerrit URL: https://gerrit.wikimedia.org/r/integration/zuul-config but Fabricator refuses to change the remote URL.

On http://fab.wmflabs.org/diffusion/ZUULCONF/edit/ I see:

Working copy OK: /fab/git/ZUULCONF

Update error:

Error updating working copy:
Working copy at "/fab/git/ZUULCONF/" has a mismatched origin URI:
"https://github.com/wikimedia/integration-zuul-config.git".
The expected origin URI is "https://gerrit.wikimedia.org/r/integration/zuul-config".

Fix your configuration, or set the remote URI correctly.
To avoid breaking anything, Phabricator will not automatically fix this.

It is probably a good thing, but I have no idea how one can fix it.

Assigning to Quim for triaiging, since we might want to have this reported back to Upstream.

Details

Reference
fl200

Related Objects

View Standalone Graph
This task is connected to more than 200 other tasks. Only direct parents and subtasks are shown here. Use View Standalone Graph to show more of the graph.

Event Timeline

flimport raised the priority of this task from to Normal.Sep 12 2014, 1:30 AM
flimport set Reference to fl200.

qgil wrote on 2014-04-23 13:57:13 (UTC)

I guess the reason for a repository owner in this situation not to just ditch the old repository and create a new one is not to loose the code reviews associated with it?

I'm not fluent in repository issues, let's CC more people.

hashar wrote on 2014-05-14 17:54:36 (UTC)

That can easily be solved by any person having shell access and appropriate right on the server. It might be worth filling upstream as a low priority defect and then abandon this local task.

aklapper wrote on 2014-06-05 17:20:48 (UTC)

In T200#16, @hashar wrote:

That can easily be solved by any person having shell access and appropriate right on the server.

@hashar: Pardon my ignorance, but which steps would that person have to execute on the server to fix it?

hashar wrote on 2014-06-10 10:05:07 (UTC)

@Aklapper

From the error message:

Working copy at "/fab/git/ZUULCONF/" has a mismatched origin URI:
"https://github.com/wikimedia/integration-zuul-config.git".
The expected origin URI is "https://gerrit.wikimedia.org/r/integration/zuul-config".

I guess one would:

cd /fab/git/ZUULCONF
git remote set-url origin https://gerrit.wikimedia.org/r/integration/zuul-config

Phabricator should be running that command whenever the URL is changed in the web interface.

Qgil lowered the priority of this task from Normal to Low.Oct 9 2014, 11:11 PM
Qgil set Security to None.
greg moved this task from To Triage to Backlog on the Differential board.
mmodell closed this task as Declined.Oct 31 2018, 7:37 PM