submodule.c
59.5 KB
-
Use `git_clone__submodule` to avoid file checks in workdir · ae7a0a63
`git_clone` checks for existence of (non-empty) directories that would clash with what is about to be cloned. This is problematic when cloning submodules since they make sense in the context of a parent module, so they should not use the current working dir. Since in `git_submodule_update` we clone the submodule only when it is not yet initialized we do not need to perform directory checks.
Aleš Bizjak committed