Skip to content
Commit 577a6913 authored by Paul Eggleton's avatar Paul Eggleton Committed by Steve Sakoman
Browse files

patch: handle if S points to a subdirectory of a git repo



If PATCHTOOL = "git", SRC_URI fetches from a git repo and S points to
a subdirectory of the checked out sources, then we were erroneously
initialising the subdirectory as its own git repo. Check if the returned
top-level repo directory is a subdirectory of WORKDIR and do not
run initialise the source directory if that is the case.

(This was a regression introduced with OE-Core revision
6184b56a, however we didn't have a test
that verified the behaviour.)

Signed-off-by: default avatarPaul Eggleton <paul.eggleton@microsoft.com>
Signed-off-by: default avatarRichard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 9cca53a2)
Signed-off-by: default avatarSteve Sakoman <steve@sakoman.com>
parent 58029ca7
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment