Skip to content

Commit 187c00c

Browse files
johnkeepinggitster
authored andcommitted
merge-tree: fix typo in merge-tree.c::unresolved
When calculating whether there is a d/f conflict, the calculation of whether both sides are directories generates an incorrect references mask because it does not use the loop index to set the correct bit. Fix this typo. Signed-off-by: John Keeping <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 6bf6366 commit 187c00c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

builtin/merge-tree.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ static void unresolved(const struct traverse_info *info, struct name_entry n[3])
245245
unsigned dirmask = 0, mask = 0;
246246

247247
for (i = 0; i < 3; i++) {
248-
mask |= (1 << 1);
248+
mask |= (1 << i);
249249
if (n[i].mode && S_ISDIR(n[i].mode))
250250
dirmask |= (1 << i);
251251
}

0 commit comments

Comments
 (0)