From f07425d4e241a8567f0ea31d996946103725f567 Mon Sep 17 00:00:00 2001 From: toonn Date: Thu, 6 Jun 2019 17:04:13 +0200 Subject: Stop git errors before they reach user Fixes #1577 --- ranger/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ranger/__init__.py b/ranger/__init__.py index 25087ea5..fabaeae9 100644 --- a/ranger/__init__.py +++ b/ranger/__init__.py @@ -24,7 +24,8 @@ def version_helper(): git_describe = subprocess.Popen(['git', 'describe'], universal_newlines=True, cwd=RANGERDIR, - stdout=subprocess.PIPE) + stdout=subprocess.PIPE, + stderr=subprocess.PIPE) (git_description, _) = git_describe.communicate() version_string = version_string.format(git_description.strip('\n')) except (OSError, subprocess.CalledProcessError): -- cgit 1.4.1-2-gfad0