mirror of
https://github.com/ejwa/gitinspector.git
synced 2024-11-16 00:28:25 +01:00
The handling of output format was wrong in the config module.
This commit is contained in:
parent
84a7fd1945
commit
ac5e38c8f0
1 changed files with 4 additions and 2 deletions
|
@ -55,8 +55,10 @@ def init(run):
|
|||
if exclude != None:
|
||||
filtering.add(exclude)
|
||||
|
||||
if not __read_git_config__("format", format.get_selected()):
|
||||
raise format.InvalidFormatError(_("specified output format not supported."))
|
||||
output_format = __read_git_config__("format", None)
|
||||
if output_format != None:
|
||||
if not format.select(output_format):
|
||||
raise format.InvalidFormatError(_("specified output format not supported."))
|
||||
|
||||
run.hard = __read_git_config__("hard", False)
|
||||
run.list_file_types = __read_git_config__("list-file-types", False)
|
||||
|
|
Loading…
Reference in a new issue