Skip to content

How do I resolve "File renaming caused colliding pathnames!" from git filter-repo --path-rename? #575

Answered by gdlxn-ibm
gdlxn-ibm asked this question in Q&A
Discussion options

You must be logged in to vote

It turns out that tracing the git-repo-filter code wasn't as hard as I expected. I found that File renaming caused colliding pathnames! from git filter-repo --path-rename <old-path>:<new-path> occurs when there's a commit in the commit history in which

  1. the commit contains changes to both <old-path and <new-path>
  2. the change to <new-path> is not a delete
  3. the resulting changes to <old-path> and <new-path> are not identical

Based on this, I'm not sure if there is a general way to resolve the File renaming caused colliding pathnames! error.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by gdlxn-ibm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant