From aee4eec3b4e6d2524048c90641ea9f2e210fce91 Mon Sep 17 00:00:00 2001 From: Martin Perina Date: Mon, 9 May 2022 16:11:20 +0200 Subject: [PATCH] Fix marking repo dir for COPR as safe 4 Signed-off-by: Martin Perina --- .copr/Makefile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.copr/Makefile b/.copr/Makefile index 865572dbab6..d7a25ef026d 100644 --- a/.copr/Makefile +++ b/.copr/Makefile @@ -8,8 +8,7 @@ srpm: installdeps # git commands won't work, and the remove afterwards to make git user config clean $(eval REPO_DIR=$(shell pwd)) git config --global --add safe.directory ${REPO_DIR} - git log -1 - $(eval SUFFIX=$(shell sh -c "echo '.git$$(git rev-parse --short HEAD)'")) + $(eval SUFFIX=.git$(shell git rev-parse --short HEAD)) echo ${SUFFIX} git config --global --unset safe.directory ${REPO_DIR} # changing the spec file as passing -D won't preserve the suffix when rebuilding in mock