[Rpm-maint] [rpm-software-management/rpm] Only configure git user if needed (PR #3472)

Michal Domonkos notifications at github.com
Tue Jan 14 10:55:24 UTC 2025


I've just re-read the discussion once more and realized that both me and @pmatilai might have misunderstood the original use case that motivated this PR in the first place:

It's *not* about `git am` overriding the author of the patch being applied - that has always worked correctly (i.e. the actual author specified in the patch file is used for the commit), regardless of what the git `user.name` and `user.email` configuration is.

This PR is about the *manual* git workflow in a repository set up by `%autopatch -S git[_am]` (i.e. after an `rpmbuild -bp`). When you make commits in such a repository, *that* is where authorship is derived from your configured (global or local) git user.

So, while it does cater to @khardix's workflow, I don't see a reason to only skip user configuration for `git_am` specifically.

Thanks for the updated PR, it does fix the technicalities I pointed out previously, but given the above, it might need a different approach. I'm just not sure what it should be.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/3472#issuecomment-2589603866
You are receiving this because you are subscribed to this thread.

Message ID: <rpm-software-management/rpm/pull/3472/c2589603866 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20250114/8ddcc230/attachment.htm>


More information about the Rpm-maint mailing list