Unable to change the authentication method in Pull from a remote repository for a project

Repro steps:

Steps to Reproduce(Can be reproduced on gitlab.com also):

  1. Navigate to Repository Settings: Project > Settings > Respository

  2. Expand "Pull from a remote repository"

  3. Give an ssh url for mirroring.

  4. Change the "Authentication method" from "Password Authentication" to "SSH Public Key Authentication"

  5. Now change the url from ssh to http/https When you change this you will lose the option to change the "Authentication method".

ZD ticket with pictures from the customer: https://gitlab.zendesk.com/agent/tickets/82695