Repo Mirror imports files but then reports "could not read username"

I have added a Github repository to a new project as part of the setup wizard. Files from the remote repo are present in the GitLab project now. But then it shows an error saying “Fatal: could not read username”:

Proof that the original authentication worked: