| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Test that shows that submodules are incorrectly considered in renames, and `git_merge_trees` will fail to lookup the submodule as a blob.
There was a problem hiding this comment.
👍
Sorry, something went wrong.
| @@ -554,7 +554,7 @@ static int similarity_measure( | |||
| *score = -1; | |||
|
|
|||
| /* don't try to compare files of different types */ | |||
There was a problem hiding this comment.
This comment is now a bit out of sync, no?
Sorry, something went wrong.
There was a problem hiding this comment.
Yes. Willfix.
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Consider the case where some branch deletes a submodule, then adds a new submodule with a different path.
Since these two paths have the same mode, they will be eligible for rename detection, and we will try to load the blobs to analyze their contents. This will, of course, fail since not only are they not blobs but the objects are in a different repository.
Make sure that the things we're looking at are actually blobs when considering them for rename detection (in diff or merge).