Project mirrors: Make it easier to set up URL
Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.
I spent several minutes trying to add a push mirror in the Repository settings. Things I did wrong:
- Left out
.git
in the URL. This resulted in a 301 error (https://forum.gitlab.com/t/fork-synching-by-using-mirroring-repositories-fails/32235/2). - Added a username and password to the URL (e.g. https://user:mypassword@gitlab.example.com), expecting the password to be extracted. Left the password out in the form. Turns out that doesn't work.
- Not being sure about
username:password
syntax. It might be clearer if we add a separateUsername
field that also gets populated if a user enters this in the URL.
I'd suggest:
- Warn or automatically append
.git
for well-known providers. Or allow redirects to.git
. - Automatically extract the password if it's not provided in the form. This could be done on the backend and/or frontend (the latter would at least provide feedback to the user).
- Make it possible to edit the settings with a new username/password or URL.
- Add a
username
field.
Also the alignment seems off:
Edited by 🤖 GitLab Bot 🤖