update-index: test the system before enabling untracked cache
[gitweb.git] / builtin / apply.c
index 525db4a2a237fa0b12a254fd72b86dcd66738e93..65b97eee69d4814bf80f87b1fd6857b8ed80cb90 100644 (file)
@@ -1601,6 +1601,9 @@ static int parse_fragment(const char *line, unsigned long size,
                        if (!deleted && !added)
                                leading++;
                        trailing++;
+                       if (!apply_in_reverse &&
+                           ws_error_action == correct_ws_error)
+                               check_whitespace(line, len, patch->ws_rule);
                        break;
                case '-':
                        if (apply_in_reverse &&