-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rpmbuild: make_srpmbuild, set recursive safe.directory #3464
Conversation
@@ -17,7 +17,7 @@ | |||
MAKE_SRPM_TEPMLATE = ( | |||
"set -x && " | |||
'cd {0} && ' | |||
'echo -e "[safe]\ndirectory = {4}" > ~/.gitconfig && ' | |||
'echo -e "[safe]\ndirectory = {4}/*" > ~/.gitconfig && ' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1 edit: I'm not sure
10bf1cd
to
ab0d3b3
Compare
@praiskup OK this was reason why we moved repo root as safe directory - #2597 (comment) so I don't think we should revert this change. We |
I still don't get why 😅 I experimented with permissions like:
IOW, there's no issue with the git tree sub-directory. Only if the top-level |
We talked about this PR on f2f meeting, and while the |
Jirka promised to update the commit message. |
right, I forgot about that, sorry |
This is byproduct of fedora-copr#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 fedora-copr#3421
ab0d3b3
to
0d868f7
Compare
done |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems OK, we talk about gitconfig file in a mock chroot. Thank you!
Relates #3421