Commit 12e25406 authored by Chris Lamb's avatar Chris Lamb 💬

Rework and comment logic determining a default for exclude_directory_metadata.

parent 03b9ffbf
Pipeline #36906 failed with stage
in 15 minutes and 26 seconds
......@@ -470,10 +470,11 @@ def run_diffoscope(parsed_args):
return 1
else:
if Config().exclude_directory_metadata is None:
# Default to ignoring metadata directory...
Config().exclude_directory_metadata = True
if os.path.isdir(path1) and os.path.isdir(path2):
# ... except if we passed two directories.
Config().exclude_directory_metadata = False
else:
Config().exclude_directory_metadata = True
logger.debug('Starting comparison')
with Progress():
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment