]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
scripts: Make git intercept global
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 6 May 2022 15:56:02 +0000 (16:56 +0100)
committerSteve Sakoman <steve@sakoman.com>
Tue, 10 May 2022 18:23:11 +0000 (08:23 -1000)
commitce6e606ba8b975a33df2f3dc6104abed9cfa7a36
tree71113a5ef0d094a90a2010477889a69c7c029d8e
parent1567b7cec5ccbe198bfd0cca9ee8a2b1cf6dbf42
scripts: Make git intercept global

The previous minimially invasive git intercept simply isn't enough. For example,
meson used in the igt-gpu-tools recipe hardcodes the path to git in the configure
step so at install time, changing PATH has no effect.

There are lots of interesting things we could do to try and avoid problems but
making the git intercept and dropping fakeroot privs for git global is probably
the least worst solution at this point. It will add slight overhead to git calls
but we don't make many so the overall impact is likely minimal.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit af27c81eaf68ee681dcd9456a74cca6a9ab40bf6)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
scripts/git [moved from scripts/git-intercept/git with 100% similarity]