From: Alexander Kanavin Date: Sat, 1 Jan 2022 11:29:55 +0000 (+0100) Subject: lib/oe/reproducible: correctly set .git location when recursively looking for git... X-Git-Tag: uninative-3.5~381 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=ffdaa1a0527691d66dd28e86bd015bfad7a020f6;p=openembedded-core.git lib/oe/reproducible: correctly set .git location when recursively looking for git repos Signed-off-by: Alexander Kanavin Signed-off-by: Richard Purdie --- diff --git a/meta/lib/oe/reproducible.py b/meta/lib/oe/reproducible.py index 4fb99d963c..35b8be6d08 100644 --- a/meta/lib/oe/reproducible.py +++ b/meta/lib/oe/reproducible.py @@ -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