mbox series

[0/3] support git's safe.bareRepository=explicit

Message ID 20240216163113.2751935-1-andre.draszik@linaro.org
Headers show
Series support git's safe.bareRepository=explicit | expand

Message

André Draszik Feb. 16, 2024, 4:24 p.m. UTC
Hi,

When git is configured with safe.bareRepository=explicit [1], various pieces
here just fail. LWN has an article about the problem that this configuration
option addresses and why it is useful in [2].

To test, simply run
    git config --global safe.bareRepository explicit
to add safe.bareRepository=explicit to your ~/.gitconfig, and see things
fail without these patches.

These patches are the first stop-gap step to make bitbake/OE work with this
configuration option enabled. I believe in the future, these should be
converted to invoking git with the --git-dir= option explicitly.

Link: https://git.kernel.org/pub/scm/git/git.git/tree/Documentation/config/safe.txt#n1 [1]
Link: https://lwn.net/Articles/892755/ [2]

Cheers,
Andre'

Comments

André Draszik Feb. 16, 2024, 4:33 p.m. UTC | #1
On Fri, 2024-02-16 at 16:24 +0000, André Draszik wrote:
> Hi,
> 
> When git is configured with safe.bareRepository=explicit [1], various pieces
> here just fail. LWN has an article about the problem that this configuration
> option addresses and why it is useful in [2].

This went to the wrong list, sorry. I'll resend on Monday.


Cheers,
Andre'