Merge branch 'git-config-parsing' into 'master'

Fix git config parsing

Because the `git config --get --bool <option>` external command adds an extraneous newline for readability purposes, that character need to be stripped for proper parsing.

*Related to:*  #170 

See merge request !75
This commit is contained in:
Ian Cordasco 2016-07-19 12:27:25 +00:00
commit 9cbb31b463

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):