| 336 | } |
| 337 | |
| 338 | static void check_shallow_file_for_update(struct repository *r) |
| 339 | { |
| 340 | if (r->parsed_objects->is_shallow == -1) |
| 341 | BUG("shallow must be initialized by now"); |
| 342 | |
| 343 | if (!stat_validity_check(r->parsed_objects->shallow_stat, |
| 344 | git_path_shallow(r))) |
| 345 | die("shallow file has changed since we read it"); |
| 346 | } |
| 347 | |
| 348 | #define SEEN_ONLY 1 |
| 349 | #define VERBOSE 2 |
no test coverage detected