#657 Endless loop of "Failed to get from Git" errors
Closed: Fixed by onosek. Opened by oturpe.

If fedpkg --release rawhide mockbuild is run outside of a Git repository,
and the specfile is not valid UTF-8,
the result is an endless loop of following errors:

$ fedpkg --release rawhide mockbuild
...
Failed to get repository name from Git url or pushurl
Failed to get ns from Git url or pushurl
Failed to get repository name from Git url or pushurl
Failed to get ns from Git url or pushurl
Failed to get repository name from Git url or pushurl
Failed to get ns from Git url or pushurl
...

The reason is that outside of Git repository, load_repo_name calls load_nameverrel.
That function errors because specfile parsing fails,
and then attempts to use repo_name() in its error message.

This problem turned out to be caused by this situation:
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/thread/BL45QXVCRGJWUPW4WRT3DF77NGQ72AI3/


Commit 7c61ddf0 fixes this issue

Metadata Update from @onosek:
- Issue set to the milestone: 1.67

Metadata
Related Pull Requests