mirror of
https://github.com/PyCQA/flake8.git
synced 2026-03-30 10:46:54 +00:00
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:
parent
e778c6ebc3
commit
b712405586
1 changed files with 1 additions and 1 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue