From c74c888506777ce137688fc58a2b7a429321db7e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Andr=C3=A9=20Apitzsch?= <git@apitzsch.eu>
Date: Fri, 23 Feb 2018 00:16:24 +0100
Subject: [PATCH] Silence 'git unavailable' message

---
 gajim/__init__.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/gajim/__init__.py b/gajim/__init__.py
index 72851030bb..ca189191f8 100644
--- a/gajim/__init__.py
+++ b/gajim/__init__.py
@@ -3,10 +3,10 @@ import subprocess
 __version__ = "0.99.2"
 
 try:
-    node = subprocess.Popen('git rev-parse --short=12 HEAD', shell=True,
-        stdout=subprocess.PIPE).communicate()[0]
+    p = subprocess.Popen('git rev-parse --short=12 HEAD', shell=True,
+                          stdout=subprocess.PIPE, stderr=subprocess.DEVNULL)
+    node = p.communicate()[0]
     if node:
         __version__ += '+' + node.decode('utf-8').strip()
 except Exception:
     pass
-
-- 
GitLab