From: Stefan Beller Date: Tue, 15 Nov 2016 23:06:47 GMT Subject: [PATCH 12/16] entry: write_entry to write populate submodules Message-ID: <20161115230651.23953-13-sbeller@google.com> In-Reply-To: <20161115230651.23953-1-sbeller@google.com> Signed-off-by: Stefan Beller --- entry.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/entry.c b/entry.c index 019826b..2330b6e 100644 --- a/entry.c +++ b/entry.c @@ -2,6 +2,7 @@ #include "blob.h" #include "dir.h" #include "streaming.h" +#include "submodule.h" static void create_directories(const char *path, int path_len, const struct checkout *state) @@ -211,6 +212,7 @@ static int write_entry(struct cache_entry *ce, return error("cannot create temporary submodule %s", path); if (mkdir(path, 0777) < 0) return error("cannot create submodule directory %s", path); + schedule_submodule_for_update(ce, 1); break; default: return error("unknown file mode for %s in index", path); -- 2.10.1.469.g00a8914