mirror of
https://git.yoctoproject.org/poky
synced 2026-02-25 10:59:41 +01:00
externalsrc.bbclass: Suppress git errors
Suppress any warnings git might generate when searching for a valid git directory, as there are use cases where the directory is expected to not exist and the warning is superfluous (From OE-Core rev: 66011996e1a8b738b31466fccad9973f8b48f71d) Signed-off-by: Joshua Watt <JPEWhacker@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
17dd9c4a1b
commit
96a87ced10
@@ -189,7 +189,7 @@ def srctree_hash_files(d, srcdir=None):
|
||||
|
||||
try:
|
||||
git_dir = os.path.join(s_dir,
|
||||
subprocess.check_output(['git', '-C', s_dir, 'rev-parse', '--git-dir']).decode("utf-8").rstrip())
|
||||
subprocess.check_output(['git', '-C', s_dir, 'rev-parse', '--git-dir'], stderr=subprocess.DEVNULL).decode("utf-8").rstrip())
|
||||
except subprocess.CalledProcessError:
|
||||
pass
|
||||
|
||||
|
||||
Reference in New Issue
Block a user