filter-repo: fix fast-import crash with renaming
When non-merge commits have files in the _files_tweaked set (they were modified by a blob or commit callback), they may become empty. However, new_1st_parent is more accurately named new_1st_parent_if_would_become_non_merge; it will always be None for non-merge commits. So we need to get the correct parent. Signed-off-by: Elijah Newren <newren@gmail.com>pull/13/head
parent
dd438dc455
commit
4ee915e4dd
Loading…
Reference in New Issue