diff --git a/Makefile.common b/Makefile.common index 216b19f..3cd4c3d 100644 --- a/Makefile.common +++ b/Makefile.common @@ -293,6 +293,10 @@ koji: prekoji-checks kojidef echo "Error: Must be on the master branch to submit to koji" >&2; \ exit 1; \ fi; \ + if ! git diff --quiet HEAD ${SPECFILE}; then \ + echo "Error: All changes to ${SPECFILE} must be committed first" >&2; \ + exit 1; \ + fi; \ if git rev-parse --verify --quiet origin/master > /dev/null; then \ git pull --rebase; \ fi