summaryrefslogtreecommitdiffstats
path: root/meta/classes/externalsrc.bbclass
diff options
context:
space:
mode:
authorJoshua Watt <jpewhacker@gmail.com>2018-02-14 17:09:38 (GMT)
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-02-16 18:05:40 (GMT)
commit96a87ced108d1c108c3f79bd1974c4e6ac0a2295 (patch)
tree9cdc9c5f0154d5de07a16e68b8d2be14ba71cce1 /meta/classes/externalsrc.bbclass
parent17dd9c4a1b08e8120d716ac9dcc098050bcdaf15 (diff)
downloadpoky-96a87ced108d1c108c3f79bd1974c4e6ac0a2295.tar.gz
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>
Diffstat (limited to 'meta/classes/externalsrc.bbclass')
-rw-r--r--meta/classes/externalsrc.bbclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/externalsrc.bbclass b/meta/classes/externalsrc.bbclass
index 65dd13d..ac1b904 100644
--- a/meta/classes/externalsrc.bbclass
+++ b/meta/classes/externalsrc.bbclass
@@ -189,7 +189,7 @@ def srctree_hash_files(d, srcdir=None):
189 189
190 try: 190 try:
191 git_dir = os.path.join(s_dir, 191 git_dir = os.path.join(s_dir,
192 subprocess.check_output(['git', '-C', s_dir, 'rev-parse', '--git-dir']).decode("utf-8").rstrip()) 192 subprocess.check_output(['git', '-C', s_dir, 'rev-parse', '--git-dir'], stderr=subprocess.DEVNULL).decode("utf-8").rstrip())
193 except subprocess.CalledProcessError: 193 except subprocess.CalledProcessError:
194 pass 194 pass
195 195