All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] externalsrc.bbclass: Suppress git errors
@ 2018-02-14 17:09 Joshua Watt
  0 siblings, 0 replies; only message in thread
From: Joshua Watt @ 2018-02-14 17:09 UTC (permalink / raw)
  To: openembedded-core; +Cc: Matt.Hoosier

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

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
---
 meta/classes/externalsrc.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/classes/externalsrc.bbclass b/meta/classes/externalsrc.bbclass
index 65dd13ddc1f..ac1b904e72c 100644
--- a/meta/classes/externalsrc.bbclass
+++ b/meta/classes/externalsrc.bbclass
@@ -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
 
-- 
2.14.3



^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2018-02-14 17:09 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-02-14 17:09 [PATCH] externalsrc.bbclass: Suppress git errors Joshua Watt

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.