| 1477 | } |
| 1478 | |
| 1479 | static void fetch_task_free(struct fetch_task *p) |
| 1480 | { |
| 1481 | if (p->free_sub) |
| 1482 | free((void*)p->sub); |
| 1483 | p->free_sub = 0; |
| 1484 | p->sub = NULL; |
| 1485 | |
| 1486 | if (p->repo) |
| 1487 | repo_clear(p->repo); |
| 1488 | FREE_AND_NULL(p->repo); |
| 1489 | |
| 1490 | strvec_clear(&p->git_args); |
| 1491 | free(p); |
| 1492 | } |
| 1493 | |
| 1494 | static struct repository *get_submodule_repo_for(struct repository *r, |
| 1495 | const char *path, |
no test coverage detected