fixing rename file (#1710)

This commit is contained in:
Daniel W. Anner 2023-10-23 16:34:23 -04:00 committed by GitHub
parent c0b4897ef9
commit 09e59d10d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -67,7 +67,7 @@ def _get_diff_from_upstream():
if file.change_type in CHANGE_TYPE_LIST:
# If the file is renamed, ensure we are picking the right schema
if 'R' in file.change_type and path in file.rename_to:
file_list.append((file.rename_from, schema, file.change_type))
file_list.append((file.rename_to, schema, file.change_type))
elif path in file.a_path:
file_list.append((file.a_path, schema, file.change_type))
elif path in file.b_path: