<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/t/lib-sudo.sh, branch jch</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=jch</id>
<link rel='self' href='https://git.shady.money/git/atom?h=jch'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2024-10-10T20:31:14Z</updated>
<entry>
<title>t: fix typos</title>
<updated>2024-10-10T20:31:14Z</updated>
<author>
<name>Andrew Kreimer</name>
<email>algonell@gmail.com</email>
</author>
<published>2024-10-10T15:11:22Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=41869f7447a5b9e904aaa9aa5b77e7ce49b7292a'/>
<id>urn:sha1:41869f7447a5b9e904aaa9aa5b77e7ce49b7292a</id>
<content type='text'>
Fix typos via codespell.

Signed-off-by: Andrew Kreimer &lt;algonell@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>t0034: add negative tests and allow git init to mostly work under sudo</title>
<updated>2022-05-13T01:12:23Z</updated>
<author>
<name>Carlo Marcelo Arenas Belón</name>
<email>carenas@gmail.com</email>
</author>
<published>2022-05-13T01:00:19Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=b9063afda17a2aa6310423c9f7b776c41f753091'/>
<id>urn:sha1:b9063afda17a2aa6310423c9f7b776c41f753091</id>
<content type='text'>
Add a support library that provides one function that can be used
to run a "scriplet" of commands through sudo and that helps invoking
sudo in the slightly awkward way that is required to ensure it doesn't
block the call (if shell was allowed as tested in the prerequisite)
and it doesn't run the command through a different shell than the one
we intended.

Add additional negative tests as suggested by Junio and that use a
new workspace that is owned by root.

Document a regression that was introduced by previous commits where
root won't be able anymore to access directories they own unless
SUDO_UID is removed from their environment.

The tests document additional ways that this new restriction could
be worked around and the documentation explains why it might be instead
considered a feature, but a "fix" is planned for a future change.

Helped-by: Junio C Hamano &lt;gitster@pobox.com&gt;
Helped-by: Phillip Wood &lt;phillip.wood123@gmail.com&gt;
Signed-off-by: Carlo Marcelo Arenas Belón &lt;carenas@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
</feed>
