Name |
Last commit
|
Last update |
---|---|---|
.. | ||
add.c | ||
escape.c | ||
init.c | ||
lookup.c | ||
modify.c | ||
nosubs.c | ||
open.c | ||
repository_init.c | ||
status.c | ||
submodule_helpers.c | ||
submodule_helpers.h | ||
update.c |
If the we decide that the "name" of the submodule (i.e. its path inside `.git/modules/`) is trying to escape that directory or otherwise trick us, we ignore the configuration for that submodule. This leaves us with a half-configured submodule when looking it up by path, but it's the same result as if the configuration really were missing. The name check is potentially more strict than it needs to be, but it lets us re-use the check we're doing for the checkout. The function that encapsulates this logic is ready to be exported but we don't want to do that in a security release so it remains internal for now.
Name |
Last commit
|
Last update |
---|---|---|
.. | ||
add.c | Loading commit data... | |
escape.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... |