diff options
Diffstat (limited to 'submodule.c')
-rw-r--r-- | submodule.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/submodule.c b/submodule.c index 45e93a1d55..04d185738f 100644 --- a/submodule.c +++ b/submodule.c @@ -234,15 +234,12 @@ int is_submodule_initialized(const char *path) return ret; } -/* - * Determine if a submodule has been populated at a given 'path' - */ -int is_submodule_populated(const char *path) +int is_submodule_populated_gently(const char *path, int *return_error_code) { int ret = 0; char *gitdir = xstrfmt("%s/.git", path); - if (resolve_gitdir(gitdir)) + if (resolve_gitdir_gently(gitdir, return_error_code)) ret = 1; free(gitdir); |