Unable to import repository: undefined method `import_file' for nil:NilClass
Summary
Unable to import repository. Get error: undefined method `import_file' for nil:NilClass
Steps to reproduce
Method
- Export previous repo (Gitlab export)
- Try to import into new repo
Example
- Goto prev repo: https://gitlab.com/aadityabagga/openrc-services-ng
- Do export, download the file
- Goto new repo: https://gitlab.com/aadityabagga/openrc-services-import-test
- Click on import repository, give exported file link, it imports, and goes to project home page
- Project home page says repository is empty, and asks to initialize or import
- Try to import via URL: https://gitlab.com/aadityabagga/openrc-services-ng
- Get error
Example Project
https://gitlab.com/aadityabagga/openrc-services-import-test
What is the current bug behavior?
Get error
What is the expected correct behavior?
Repository gets imported.
Relevant logs and/or screenshots
Output of checks
This bug happens on GitLab.com
Possible fixes
N/A
Edited by Aaditya