1
0
mirror of https://git.yoctoproject.org/poky synced 2026-05-30 12:29:55 +00:00

Revert "bitbake.conf: mark all directories as safe for git to read"

Turns out this doesn't actually work, as git doesn't respect the environment
when reading the safe.directory configuration variable.

This reverts commit d4a5862ce8.

(From OE-Core rev: 73087e3c4bf6792c37f0a9d8d006c09856d36b13)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit e28dd48ffb84c8bb4356d889b70a4b876c8bbaf3)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Ross Burton
2022-05-06 16:56:04 +01:00
committed by Richard Purdie
parent 7868ccd57a
commit 38c8316155
-8
View File
@@ -776,18 +776,10 @@ export PKG_CONFIG_DISABLE_UNINSTALLED = "yes"
export PKG_CONFIG_SYSTEM_LIBRARY_PATH = "${base_libdir}:${libdir}"
export PKG_CONFIG_SYSTEM_INCLUDE_PATH = "${includedir}"
# Git configuration
# Don't allow git to chdir up past WORKDIR so that it doesn't detect the OE
# repository when building a recipe
export GIT_CEILING_DIRECTORIES = "${WORKDIR}"
# Treat all directories are safe, as during fakeroot tasks git will run as
# root so recent git releases (eg 2.30.3) will refuse to work on repositories. See
# https://github.com/git/git/commit/8959555cee7ec045958f9b6dd62e541affb7e7d9 for
# further details.
export GIT_CONFIG_PARAMETERS="'safe.directory=*'"
###
### Config file processing
###