#588 mockbuild requires git remotes
Opened 2 months ago by qulogic. Modified 2 months ago

If I'm starting out a package, I might put it in git to track my work.

However, this breaks fedpkg mockbuild as it tries to look for git remotes:

$ cat > foo.spec << EOF
Name: foo
Version: 1
Release: %autorelease
Summary: foo
License: MIT
Source: foo.tar.xz

%description
%summary

%changelog
%autochangelog
EOF

$ git init -b rawhide

$ fedpkg mockbuild
Could not execute mockbuild: ('Could not download sources: %s', GitError("reference 'refs/heads/rawhide' not found"))

This should not be a fatal error if the source tarball is already there (which in this case, it isn't, but it should fail for that, not the git remote).


Ah, sorry, after some more testing, it's not that a remote is required, it's that I never committed anything and it can't guess the branch name?

Git knows that the to-be-created branch is rawhide, as does my shell prompt, so there must be some fallback that fedpkg can use to figure it out. But for now I can just make an initial commit.

Log in to comment on this ticket.

Metadata