Import project from repository by URL - stuck when incorrect URL is inserted
Summary
Import project from repository by URL stuck as endless process when wrong URL (missing .git at the end) of same instance is inserted.
Steps to reproduce
Put the wrong URL of the same instance (omit .git from the URL) when importing a project.
What is the current bug behavior?
The page will be stuck at Import in progress page with no error output when the URL is from the same instance and missing .git at the end.
What is the expected correct behavior?
The "Import in Progress" page should be directed to a "Import Failed" or similar page to display error message on the UI stating that the URL is incorrect.
Relevant logs and/or screenshots
Output of checks
This is happening on GitLab.com (13.7.0-pre eb33b6c02e8) and GitLab EE
Possible fixes
- Check input URL, if valid proceed to import. Otherwise output error message.
Current workaround: Check URL, make sure there's .git at the end.
Notes
I tried using an external URL like github.com, it works fine and the repo was imported without the .git at the end of the URL.

