Repository import by URL throws "There is not a valid Git repository at this URL" on valid Git URL
Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.
Summary
Attempting to import a repository from a Git 3rd party vendor such as GitHub or BitBucket Cloud via import by URL throws the following error when entering the repository URL:
There is not a valid Git repository at this URL. If your HTTP repository is not publicly accessible, verify your credentials.
Adding a blank space at the end of the URL makes the error go away.
Steps to reproduce
- Create a New Project in GitLab.
- Select the Import Project option.
- Select the Repository by URL option.
- Enter a BitBucket Cloud/GitHub Cloud repository URL into the Git repository URL field.
- The error mentioned in the summary is displayed and the project cannot be imported.
What is the current bug behavior?
The error is thrown and repository cannot be imported.
UI problems described in #366769 (comment 1892034147) and #366769 (comment 2149495813)
What is the expected correct behavior?
The repository is successfully imported.
Output of checks
This bug happens on GitLab.com.
Possible fixes
Edited by 🤖 GitLab Bot 🤖