Clear the submodule cache.
Clear the submodule cache populated by git_repository_submodule_cache_all
.
If there is no cache, do nothing.
The cache incorporates data from the repository's configuration, as well as the state of the working tree, the index, and HEAD. So any time any of these has changed, the cache might become invalid.
0 on success, or an error code