diff options
-rw-r--r-- | meta/classes/externalsrc.bbclass | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/classes/externalsrc.bbclass b/meta/classes/externalsrc.bbclass index 8136d25cb1..880556b834 100644 --- a/meta/classes/externalsrc.bbclass +++ b/meta/classes/externalsrc.bbclass | |||
@@ -211,8 +211,8 @@ def srctree_hash_files(d, srcdir=None): | |||
211 | try: | 211 | try: |
212 | git_dir = os.path.join(s_dir, | 212 | git_dir = os.path.join(s_dir, |
213 | subprocess.check_output(['git', '-C', s_dir, 'rev-parse', '--git-dir'], stderr=subprocess.DEVNULL).decode("utf-8").rstrip()) | 213 | subprocess.check_output(['git', '-C', s_dir, 'rev-parse', '--git-dir'], stderr=subprocess.DEVNULL).decode("utf-8").rstrip()) |
214 | top_git_dir = os.path.join(s_dir, subprocess.check_output(['git', '-C', d.getVar("TOPDIR"), 'rev-parse', '--git-dir'], | 214 | top_git_dir = os.path.join(d.getVar("TOPDIR"), |
215 | stderr=subprocess.DEVNULL).decode("utf-8").rstrip()) | 215 | subprocess.check_output(['git', '-C', d.getVar("TOPDIR"), 'rev-parse', '--git-dir'], stderr=subprocess.DEVNULL).decode("utf-8").rstrip()) |
216 | if git_dir == top_git_dir: | 216 | if git_dir == top_git_dir: |
217 | git_dir = None | 217 | git_dir = None |
218 | except subprocess.CalledProcessError: | 218 | except subprocess.CalledProcessError: |