diff options
Diffstat (limited to 'meta/classes/externalsrc.bbclass')
-rw-r--r-- | meta/classes/externalsrc.bbclass | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/meta/classes/externalsrc.bbclass b/meta/classes/externalsrc.bbclass index 08e6e47901..65dd13ddc1 100644 --- a/meta/classes/externalsrc.bbclass +++ b/meta/classes/externalsrc.bbclass | |||
@@ -188,10 +188,8 @@ def srctree_hash_files(d, srcdir=None): | |||
188 | git_dir = None | 188 | git_dir = None |
189 | 189 | ||
190 | try: | 190 | try: |
191 | # git rev-parse returns the path relative to the current working | ||
192 | # directory | ||
193 | git_dir = os.path.join(s_dir, | 191 | git_dir = os.path.join(s_dir, |
194 | subprocess.check_output(['git', 'rev-parse', '--git-dir'], cwd=s_dir).decode("utf-8").rstrip()) | 192 | subprocess.check_output(['git', '-C', s_dir, 'rev-parse', '--git-dir']).decode("utf-8").rstrip()) |
195 | except subprocess.CalledProcessError: | 193 | except subprocess.CalledProcessError: |
196 | pass | 194 | pass |
197 | 195 | ||