Skip to content

support git's safe.bareRepository=explicit

André Draszik bitbake-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3fetch/git2: support git's safe.bareRepositorybitbake/lib/bb/fetch2/git.py+2 -20 replies
2/3tests/fetch: support git's safe.bareRepositorybitbake/lib/bb/tests/fetch.py+2 -20 replies
3/3git-make-shallow: support git's safe.bareRepositorybitbake/bin/git-make-shallow+18 -160 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [bitbake][PATCH 0/3] support git's safe.bareRepository=explicit

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].

It also seems that it is being rolled out in some environments as a default for users.

To reproduce, 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.

Cheers,
Andre'