diff options
-rw-r--r-- | meta/classes/externalsrc.bbclass | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/externalsrc.bbclass b/meta/classes/externalsrc.bbclass index a6a8ca6318..57135f2e4c 100644 --- a/meta/classes/externalsrc.bbclass +++ b/meta/classes/externalsrc.bbclass | |||
@@ -229,7 +229,7 @@ def srctree_hash_files(d, srcdir=None): | |||
229 | env['GIT_INDEX_FILE'] = tmp_index.name | 229 | env['GIT_INDEX_FILE'] = tmp_index.name |
230 | subprocess.check_output(['git', 'add', '-A', '.'], cwd=s_dir, env=env) | 230 | subprocess.check_output(['git', 'add', '-A', '.'], cwd=s_dir, env=env) |
231 | git_sha1 = subprocess.check_output(['git', 'write-tree'], cwd=s_dir, env=env).decode("utf-8") | 231 | git_sha1 = subprocess.check_output(['git', 'write-tree'], cwd=s_dir, env=env).decode("utf-8") |
232 | if os.path.exists(".gitmodules"): | 232 | if os.path.exists(os.path.join(s_dir, ".gitmodules")): |
233 | submodule_helper = subprocess.check_output(["git", "config", "--file", ".gitmodules", "--get-regexp", "path"], cwd=s_dir, env=env).decode("utf-8") | 233 | submodule_helper = subprocess.check_output(["git", "config", "--file", ".gitmodules", "--get-regexp", "path"], cwd=s_dir, env=env).decode("utf-8") |
234 | for line in submodule_helper.splitlines(): | 234 | for line in submodule_helper.splitlines(): |
235 | module_dir = os.path.join(s_dir, line.rsplit(maxsplit=1)[1]) | 235 | module_dir = os.path.join(s_dir, line.rsplit(maxsplit=1)[1]) |