Renaming Github organization (Gerrithub)

133 views
Skip to first unread message

Ludwig Fingal

unread,
Jan 16, 2023, 9:48:02 AM1/16/23
to Repo and Gerrit Discussion
Hey all,

For background, in our organization we have an organization on Github that are then imported and synced to Gerrithub. Now we want to rename the organization, which will break all existing remote URLs.

Does anyone know of a good migration path here? Do we have to do the rename and re-import all the repos? What happens to Gerrit review history if we do this? I assume it will be detached, i.e. there are now "2" repos. 

My apologies if I've misunderstood something, bit of a Gerrit noob

Thanks

Tom Printy

unread,
Jan 16, 2023, 10:27:12 AM1/16/23
to Ludwig Fingal, Repo and Gerrit Discussion
I believe that GitHub will "rewrite" the urls for you.  When I have moved repos from one org to another GitHub has redirected the urls for us.  Maybe you setup a new org and migrate the repos between the orgs so the rewrites work?

--
--
To unsubscribe, email repo-discuss...@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en

---
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to repo-discuss...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/repo-discuss/115a11e0-9ad2-4d00-9c6f-d174f0666752n%40googlegroups.com.

Ludwig Fingal

unread,
Jan 18, 2023, 5:50:04 AM1/18/23
to Repo and Gerrit Discussion
So I went ahead and investigated this - turns out you are absolutely right!

I did the following:
1. Created a dummy organization and a dummy repo, imported it to Gerrithub
2. Opened a few changes
3. Renamed the organization
4. Submitted the changes in Gerrithubs web UI

It all went off without a hitch.

So Github creates redirects for old org -> new org, but the organization name will not be reserved. Basically anyone can claim the previous organizations name and the redirects will be broken since they will then point to the new owners organization. At least that's what I get from reading Githubs docs.
I suppose we then have to import the same repo, but from the new organization, into Gerrithub and deprecate/remove the old "repo". Slightly annoying that we will lose (or detach) the Gerrit review history, but not the end of the world. It's still in the normal git log after all.
Reply all
Reply to author
Forward
0 new messages