Skip to content

Commit 24f9d5c

Browse files
committed
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 <[email protected]>
1 parent 322ee20 commit 24f9d5c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

merge-ort.c

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

4114-
if (!lstat(path, &st)) {
4114+
if (!core_virtualfilesystem && !lstat(path, &st)) {
41154115
char *new_name = unique_path(&opt->priv->paths,
41164116
path,
41174117
"cruft");

0 commit comments

Comments
 (0)