We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 49806e9 commit 9536736Copy full SHA for 9536736
src/merge.c
@@ -1075,7 +1075,7 @@ static int index_entry_similarity_inexact(
1075
int score = 0;
1076
int error = 0;
1077
1078
- if (GIT_MODE_TYPE(a->mode) != GIT_MODE_TYPE(b->mode))
+ if (!GIT_MODE_ISBLOB(a->mode) || !GIT_MODE_ISBLOB(b->mode))
1079
return 0;
1080
1081
/* update signature cache if needed */
0 commit comments