The handling of output format was wrong in the config module.

This commit is contained in:
Adam Waldenberg 2013-07-01 00:33:58 +02:00
parent 84a7fd1945
commit ac5e38c8f0

View file

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