summaryrefslogtreecommitdiff
path: root/submodule.c
diff options
context:
space:
mode:
authorStefan Beller <sbeller@google.com>2017-03-14 21:46:31 (GMT)
committerJunio C Hamano <gitster@pobox.com>2017-03-16 01:15:54 (GMT)
commit15cdc6477634e0227e4211de464c6443a68172c9 (patch)
treefcdc3d3d72371aa687e4bc9f4e2e26c633ed3c50 /submodule.c
parent259f3ee29666eddf65fb0fe0e3fd14aa22f33cba (diff)
downloadgit-15cdc6477634e0227e4211de464c6443a68172c9.zip
git-15cdc6477634e0227e4211de464c6443a68172c9.tar.gz
git-15cdc6477634e0227e4211de464c6443a68172c9.tar.bz2
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>
Diffstat (limited to 'submodule.c')
-rw-r--r--submodule.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/submodule.c b/submodule.c
index 45e93a1..04d1857 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);