Re: [RFC PATCH] git-compat-util: avoid failing dir ownership checks if running priviledged
- From
Carlo Arenas <carenas@gmail.com>
- Date
- Apr 26, 2022, 20:26 UTC
- Message-ID
- <CAPUEspitAQrEjMpUyw8e2pyT1MT+h_dO5wSU0wWDWTqSye5TwA@mail.gmail.com>
- In-Reply-To
- <9658dea7-d421-b238-113d-c7b83eca4569@github.com>
On Tue, Apr 26, 2022 at 12:48 PM Derrick Stolee <derrickstolee@github.com> wrote:
> These points make sense. It would be worth taking our time and > doing some refactoring in advance of this functional change.
Problem with taking our time or making it a bigger change is that it is currently broken in the last maint versions so it would be ideal to backport quickly there as a "regression".
> I wonder how we could test a multi-user scenario. The tests I > added in e47363e5a (t0033: add tests for safe.directory, 2022-04-13) > purposefully avoid the user-id functionality.
It would need to be a CI only test (where passwordless sudo is allowed)
> I imagine that something else could be added here to help Windows > users who have elevated to administrator privileges. It will use a > completely different mechanism, though, if needed at all. We can > delay that for now.
Note this function is *NIX only, there is another one for Windows where a similar fix (if needed) could be implemented
Carlo