diff options
-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): git_dir = None try: - # git rev-parse returns the path relative to the current working - # directory git_dir = os.path.join(s_dir, - subprocess.check_output(['git', 'rev-parse', '--git-dir'], cwd=s_dir).decode("utf-8").rstrip()) + subprocess.check_output(['git', '-C', s_dir, 'rev-parse', '--git-dir']).decode("utf-8").rstrip()) except subprocess.CalledProcessError: pass |