]> code.ossystems Code Review - openembedded-core.git/commitdiff
lib/oe/reproducible: correctly set .git location when recursively looking for git...
authorAlexander Kanavin <alex.kanavin@gmail.com>
Sat, 1 Jan 2022 11:29:55 +0000 (12:29 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 5 Jan 2022 17:18:11 +0000 (17:18 +0000)
Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oe/reproducible.py

index 4fb99d963ce144ae5d0d2e1379d349f816a50267..35b8be6d0844577d2f6f97be6f276abea91a4b57 100644 (file)
@@ -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