mirror of
https://github.com/newren/git-filter-repo.git
synced 2024-06-13 07:34:02 +02:00
filter-repo: don't have analyze choke on typechange types
The analyze mode will handle type changes (e.g. normal file to symlink) in combination with adds and modifies, but the similar logic below didn't allow for type changes in combination with renames. Fix the oversight. Signed-off-by: Elijah Newren <newren@gmail.com>
This commit is contained in:
parent
b56ca0437a
commit
eec9b081ee
|
@ -2237,7 +2237,7 @@ class RepoAnalyze(object):
|
|||
RepoAnalyze.handle_file(stats, graph, commit, modes, shas, filenames)
|
||||
elif modes[-1] == b'040000' and change_types.strip(b'RAM') == b'':
|
||||
RepoAnalyze.handle_file(stats, graph, commit, modes, shas, filenames)
|
||||
elif change_types.strip(b'RAM') == b'':
|
||||
elif change_types.strip(b'RAMT') == b'':
|
||||
RepoAnalyze.handle_file(stats, graph, commit, modes, shas, filenames)
|
||||
RepoAnalyze.handle_renames(stats, commit, change_types, filenames)
|
||||
else:
|
||||
|
|
Loading…
Reference in New Issue
Block a user