* When a submodule is not defined in .gitmodules, we cannot access it * via the regular submodule-config. Create a fake submodule, which we can * work on. */
| 1462 | * work on. |
| 1463 | */ |
| 1464 | static const struct submodule *get_non_gitmodules_submodule(const char *path) |
| 1465 | { |
| 1466 | struct submodule *ret; |
| 1467 | const char *name = default_name_or_path(path); |
| 1468 | |
| 1469 | if (!name) |
| 1470 | return NULL; |
| 1471 | |
| 1472 | CALLOC_ARRAY(ret, 1); |
| 1473 | ret->path = name; |
| 1474 | ret->name = name; |
| 1475 | |
| 1476 | return (const struct submodule *) ret; |
| 1477 | } |
| 1478 | |
| 1479 | static void fetch_task_free(struct fetch_task *p) |
| 1480 | { |
no test coverage detected