Fix git config parsing

Since the "git config" command adds a newline to the end of its output, the extraneous whitespace needs to be stripped out for proper parsing.

Fixes #170
This commit is contained in:
Sabbir Muhit 2016-07-18 22:38:10 -04:00
parent e778c6ebc3
commit b712405586

View file

@ -181,7 +181,7 @@ def piped_process(command):
def git_config_for(parameter):
config = piped_process(['git', 'config', '--get', '--bool', parameter])
(stdout, _) = config.communicate()
return to_text(stdout)
return to_text(stdout).strip()
def config_for(parameter):