From 0d868f7c71135baa23262fd3a677764241212f5c Mon Sep 17 00:00:00 2001 From: Jiri Kyjovsky Date: Mon, 7 Oct 2024 18:56:58 +0200 Subject: [PATCH] rpmbuild: make_srpmbuild, set recursive safe.directory This is byproduct of https://github.com/fedora-copr/copr/issues/3421 While to /* safe directory is not needed now, since different fix was applied to the issue above, some users might consider this useful - they mmioght be doing manual git clones in their mock directory, which will raise safe-directory error. There is no need to bother them with this, thus turning this off for their whole subdirectory. Relates #3421 --- rpmbuild/copr_rpmbuild/providers/scm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpmbuild/copr_rpmbuild/providers/scm.py b/rpmbuild/copr_rpmbuild/providers/scm.py index ed01e6527..ddfdb7b72 100644 --- a/rpmbuild/copr_rpmbuild/providers/scm.py +++ b/rpmbuild/copr_rpmbuild/providers/scm.py @@ -17,7 +17,7 @@ MAKE_SRPM_TEPMLATE = ( "set -x && " 'cd {0} && ' - 'echo -e "[safe]\ndirectory = {4}" > ~/.gitconfig && ' + 'echo -e "[safe]\ndirectory = {4}\ndirectory = {4}/*" > ~/.gitconfig && ' 'make -f {1} srpm outdir="{2}" spec="{3}"' )