make is_submodule_populated gently
We need the gentle version in a later patch. As we have just one caller, migrate the caller. Signed-off-by: Stefan Beller <sbeller@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
committed by
Junio C Hamano
parent
259f3ee296
commit
15cdc64776
@ -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);
|
||||
|
||||
Reference in New Issue
Block a user