]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
externalsrc: Always ask Git for location of .git directory
authorMike Crowe <mac@mcrowe.com>
Wed, 2 Jul 2025 10:56:58 +0000 (11:56 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 7 Jul 2025 21:12:47 +0000 (22:12 +0100)
commit47891e200e92ba34a6ff2df2fba1032738f52f98
tree6643b5b636fe5c236fe24276d5a512eaeaf1a2e3
parent3e95f13bd5547bf3d555d8344e47912bd94d07f8
externalsrc: Always ask Git for location of .git directory

externalsrc_configure_prefunc assumed that the .git directory is
${S}/.git. This isn't true for submodules at least.

srctree_hash_files already contained code to ask Git for the correct
path to the .git directory. Let's move that code to a new find_git_dir
function and call it from both places and make the behaviour consistent.

Signed-off-by: Mike Crowe <mac@mcrowe.com>
Signed-off-by: Antonin Godard <antonin.godard@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/externalsrc.bbclass