Skip to content

Commit d8e8979

Browse files
committed
merge interrupted when disccarding all ignored
1 parent f06ba5f commit d8e8979

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

merge-overlay

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,8 +353,8 @@ while IFS= read -u 4 -r -d '' file; do
353353
# Auto-discard ignored files
354354
rm -f "$file"
355355
elif git_ignored_should_discard "$rel_path"; then
356+
((++GIT_IGNORED_COUNT)) # pre-increment to avoid returning non-zero status
356357
rm -f "$file"
357-
((GIT_IGNORED_COUNT++))
358358
else
359359
FILES+=("$rel_path")
360360
fi

0 commit comments

Comments
 (0)