Skip to content
Snippets Groups Projects
Commit b6a4190d authored by Chris Lamb's avatar Chris Lamb :eyes:
Browse files

Fix a regression introduced in diffoscope version 207 where diffoscope would...

Fix a regression introduced in diffoscope version 207 where diffoscope would crash if one directory contained a directory that wasn't in the other. Thanks to Alderico Gallo for the testcase. (Closes: #310)
parent 644682bb
No related branches found
No related tags found
No related merge requests found
Pipeline #405420 passed
......@@ -143,7 +143,7 @@ def compare_files(file1, file2, source=None, diff_content_only=False):
with profile("compare_files (cumulative)", file1):
if file2.is_directory():
difference = file2.compare(file1, source)
if difference is not None:
if isinstance(difference, Difference):
difference = difference.get_reverse()
return difference
return file1.compare(file2, source)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment