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 3f7f533cc6..ed118afada 100644 --- a/meta/classes/externalsrc.bbclass +++ b/meta/classes/externalsrc.bbclass | |||
| @@ -225,7 +225,7 @@ def srctree_hash_files(d, srcdir=None): | |||
| 225 | env['GIT_INDEX_FILE'] = tmp_index.name | 225 | env['GIT_INDEX_FILE'] = tmp_index.name |
| 226 | subprocess.check_output(['git', 'add', '-A', '.'], cwd=s_dir, env=env) | 226 | subprocess.check_output(['git', 'add', '-A', '.'], cwd=s_dir, env=env) |
| 227 | git_sha1 = subprocess.check_output(['git', 'write-tree'], cwd=s_dir, env=env).decode("utf-8") | 227 | git_sha1 = subprocess.check_output(['git', 'write-tree'], cwd=s_dir, env=env).decode("utf-8") |
| 228 | if os.path.exists(".gitmodules"): | 228 | if os.path.exists(os.path.join(s_dir, ".gitmodules")): |
| 229 | submodule_helper = subprocess.check_output(["git", "config", "--file", ".gitmodules", "--get-regexp", "path"], cwd=s_dir, env=env).decode("utf-8") | 229 | submodule_helper = subprocess.check_output(["git", "config", "--file", ".gitmodules", "--get-regexp", "path"], cwd=s_dir, env=env).decode("utf-8") |
| 230 | for line in submodule_helper.splitlines(): | 230 | for line in submodule_helper.splitlines(): |
| 231 | module_dir = os.path.join(s_dir, line.rsplit(maxsplit=1)[1]) | 231 | module_dir = os.path.join(s_dir, line.rsplit(maxsplit=1)[1]) |
