Skip to content

Commit d45b7f4

Browse files
committed
merge-recursive: Do not look at working tree during a virtual ancestor merge
Fix another instance of a recursive merge incorrectly paying attention to the working tree file during a virtual ancestor merge, that resulted in spurious and useless "addinfo_cache failed" error message. Signed-off-by: Junio C Hamano <[email protected]>
1 parent 5ec8217 commit d45b7f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

merge-recursive.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1627,7 +1627,7 @@ static int merge_content(struct merge_options *o,
16271627
path_renamed_outside_HEAD = !path2 || !strcmp(path, path2);
16281628
if (!path_renamed_outside_HEAD) {
16291629
add_cacheinfo(mfi.mode, mfi.sha, path,
1630-
0 /*stage*/, 1 /*refresh*/, 0 /*options*/);
1630+
0, (!o->call_depth), 0);
16311631
return mfi.clean;
16321632
}
16331633
} else

0 commit comments

Comments
 (0)