The srpm build system of copr just upgrade their git which enforce `safe.directory` check. https://git-scm.com/docs/git-config/#Documentation/git-config.txt-safedirectory This command fixed copr issue: git config --global --add safe.directory $(PROJECT_DIR) Signed-off-by: Gris Ge <fge@redhat.com>