| 1492 | } |
| 1493 | |
| 1494 | static struct repository *get_submodule_repo_for(struct repository *r, |
| 1495 | const char *path, |
| 1496 | const struct object_id *treeish_name) |
| 1497 | { |
| 1498 | struct repository *ret = xmalloc(sizeof(*ret)); |
| 1499 | |
| 1500 | if (repo_submodule_init(ret, r, path, treeish_name)) { |
| 1501 | free(ret); |
| 1502 | return NULL; |
| 1503 | } |
| 1504 | |
| 1505 | return ret; |
| 1506 | } |
| 1507 | |
| 1508 | static struct fetch_task *fetch_task_create(struct submodule_parallel_fetch *spf, |
| 1509 | const char *path, |
no test coverage detected