Skip to content

Commit

Permalink
.copr/Makefile: Allow building RPM without git remote
Browse files Browse the repository at this point in the history
The Prow CI build job we have doesn't seem to keep the git remote
around.
  • Loading branch information
jlebon committed Feb 6, 2024
1 parent e7cbe65 commit ab58750
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .copr/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@ srpm:
./ci/installdeps.sh
# similar to https://github.com/actions/checkout/issues/760, but for COPR
git config --global --add safe.directory '*'
# fetch tags so `git describe` gives a nice NEVRA when building the RPM
git fetch origin --tags
# if we have a git repo with remotes, fetch tags so `git describe` gives a nice NEVRA when
# building the RPM
if git remote | grep origin; then git fetch origin --tags; fi
git submodule update --init --recursive
# Our primary CI build goes via RPM rather than direct to binaries
# to better test that path, including our vendored spec file, etc.
Expand Down

0 comments on commit ab58750

Please sign in to comment.