Skip to content

Commit

Permalink
rpmbuild: make_srpmbuild, set recursive safe.directory
Browse files Browse the repository at this point in the history
This is byproduct of #3421

While <dir> to <dir>/* 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
  • Loading branch information
nikromen committed Oct 18, 2024
1 parent 916f82f commit 0d868f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rpmbuild/copr_rpmbuild/providers/scm.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}"'
)

Expand Down

0 comments on commit 0d868f7

Please sign in to comment.