| Name |
Last commit
|
Last update |
|---|---|---|
| .. | ||
| add.c | ||
| init.c | ||
| lookup.c | ||
| modify.c | ||
| nosubs.c | ||
| open.c | ||
| repository_init.c | ||
| status.c | ||
| submodule_helpers.c | ||
| submodule_helpers.h | ||
| update.c |
While it is technically possible to look up submodules inside of a bare repository by reading the submodule configuration of a specific commit, we do not offer this functionality right now. As such, calling both `git_submodule_lookup` and `git_submodule_foreach` should error out early when these functions encounter a bare repository. While `git_submodule_lookup` already does return an error due to not being able to parse the configuration, `git_submodule_foreach` simply returns success and never invokes the callback function. Fix the issue by having both functions check whether the repository is bare and returning an error in that case.
| Name |
Last commit
|
Last update |
|---|---|---|
| .. | ||
| add.c | Loading commit data... | |
| init.c | Loading commit data... | |
| lookup.c | Loading commit data... | |
| modify.c | Loading commit data... | |
| nosubs.c | Loading commit data... | |
| open.c | Loading commit data... | |
| repository_init.c | Loading commit data... | |
| status.c | Loading commit data... | |
| submodule_helpers.c | Loading commit data... | |
| submodule_helpers.h | Loading commit data... | |
| update.c | Loading commit data... |