mirror of
https://git.yoctoproject.org/poky
synced 2026-04-23 09:32:17 +02:00
lib/oe/reproducible: correctly set .git location when recursively looking for git repos
(From OE-Core rev: ffdaa1a0527691d66dd28e86bd015bfad7a020f6) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
a44ba6ae65
commit
51a8e28fe0
@@ -92,7 +92,7 @@ def find_git_folder(d, sourcedir):
|
||||
for root, dirs, files in os.walk(workdir, topdown=True):
|
||||
dirs[:] = [d for d in dirs if d not in exclude]
|
||||
if '.git' in dirs:
|
||||
return root
|
||||
return os.path.join(root, ".git")
|
||||
|
||||
bb.warn("Failed to find a git repository in WORKDIR: %s" % workdir)
|
||||
return None
|
||||
|
||||
Reference in New Issue
Block a user