Importer hangs when rich history URL requires authentication
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
git-ubuntu |
Fix Released
|
Medium
|
Robie Basak |
Bug Description
Importing amavisd-new currently fails with:
$ git-ubuntu import --no-push -d amavisd-new -v amavisd-new
...
07/07/2022 18:06:22 - DEBUG:Executing: git fetch https:/
Username for 'https:/
This is because the rich history URL provided against 1:2.12.2-1ubuntu1 requires authentication. Probably because the repository doesn't exist - I noticed that Launchpad returns initially with requiring authentication since it doesn't know whether or not to present a private repository or not, and presumably doesn't want to leak the existence of private repositories by doing anything else.
We need to figure out how to tell "git fetch" to never auth and not block.
Related branches
- Lena Voytek (community): Approve
- Server Team CI bot: Approve (continuous-integration)
- Canonical Server Reporter: Pending requested
- git-ubuntu developers: Pending requested
-
Diff: 44 lines (+17/-2)1 file modifiedgitubuntu/importer.py (+17/-2)
Changed in git-ubuntu: | |
status: | Triaged → In Progress |
assignee: | nobody → Robie Basak (racb) |
A shorter reproducer:
mkdir reproducer /git.launchpad. net/~ahasenack/ ubuntu/ +source/ amavisd- new refs/heads/ merge-lp1946841 -jammy
cd reproducer
git init
git fetch https:/
This hangs with:
Username for 'https:/ /git.launchpad. net':
How do we make it not hang? I tried redirecting stdin from /dev/null but that didn't work.