How to change URL to git repository

Hi guys,

our GitHub Enterprise environment was moved from http to https. Is there a way to update the URL for our repositories? Editing a repository does not even show the repository URL.

Regards

Kay Zumbusch

Nevermind. I managed to change the URL. The web interface failed to show the Git tab in the repository settings.

Hi Kay,

It’s odd that the Git tab did not show. Did this start working again after refreshing the browser? If this happens again, can you check if there are any Javascript errors in the web browser console? It’s possible that an error in a previous event or server call has stopped Javascript responding to other events. 


Hi Dave,

I tried to reproduce the problem in the last couple of days but the git tab was always displayed correctly. I encountered a different problem related to changing the URL.

As I already mentioned I had to update our repositories from http to https. Changing the repository URL creates a copy of the repository and archives the old one. But it seems that the archived repository are still synced. After I changed the URL and the new repository was properly synced I changed the login credentials for the repository which worked as expected. As we access our repositories through a VPN tunnel our repositories are not always accessible and I get error notifications as private messages regarding the repositories that are not accessible. But I get these error messages for archived repositories. The username of the archived repository is included in the error message.

On a side node I’d like to see just changing the protocol of repository just updates the URL and does not create a copy of the repository.

Hi Kay,

I’ve not been able to reproduce a situation where archive repositories are still checked. Changing the repository url does archive the original repository, but in my tests the repository checker is then removed. Are there any errors in the event log around the time that the url was changed? Maybe a previous error had prevented completion of the archiving code. I have however added an additional check to prevent checkers running for any archived repositories which should stop this happening again.  

We’ll look into whether we can keep the same repository if it’s only the protocol part of the url that has changed.