Skip to content

Commit 84e203b

Browse files
derrickstoleedscho
authored andcommitted
merge-ort: ignore skip-worktree bit with virtual filesystem
Without this change, the mere conflicts start creating <path>~cruft files on-disk, which is caught by the VFS for Git functional tests. Signed-off-by: Derrick Stolee <dstolee@microsoft.com>
1 parent a22ca5f commit 84e203b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

merge-ort.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4204,7 +4204,7 @@ static int record_conflicted_index_entries(struct merge_options *opt)
42044204
if (ce_skip_worktree(ce)) {
42054205
struct stat st;
42064206

4207-
if (!lstat(path, &st)) {
4207+
if (!core_virtualfilesystem && !lstat(path, &st)) {
42084208
char *new_name = unique_path(opt,
42094209
path,
42104210
"cruft");

0 commit comments

Comments
 (0)