summaryrefslogtreecommitdiffstats
path: root/git_command.py
diff options
context:
space:
mode:
Diffstat (limited to 'git_command.py')
-rw-r--r--git_command.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/git_command.py b/git_command.py
index 354fc715..53b3e75c 100644
--- a/git_command.py
+++ b/git_command.py
@@ -80,13 +80,13 @@ class _GitCall(object):
80 def version(self): 80 def version(self):
81 p = GitCommand(None, ['--version'], capture_stdout=True) 81 p = GitCommand(None, ['--version'], capture_stdout=True)
82 if p.Wait() == 0: 82 if p.Wait() == 0:
83 return p.stdout 83 return p.stdout.decode('utf-8')
84 return None 84 return None
85 85
86 def version_tuple(self): 86 def version_tuple(self):
87 global _git_version 87 global _git_version
88 if _git_version is None: 88 if _git_version is None:
89 ver_str = git.version().decode('utf-8') 89 ver_str = git.version()
90 _git_version = Wrapper().ParseGitVersion(ver_str) 90 _git_version = Wrapper().ParseGitVersion(ver_str)
91 if _git_version is None: 91 if _git_version is None:
92 print('fatal: "%s" unsupported' % ver_str, file=sys.stderr) 92 print('fatal: "%s" unsupported' % ver_str, file=sys.stderr)