From 582c7393a47894ea299a82c2ae91fec3101e7559 Mon Sep 17 00:00:00 2001 From: Sven Verdoolaege Date: Tue, 26 Jun 2007 23:19:41 +0200 Subject: [PATCH] Ignore submodule commits when fetching over dumb protocols Without this patch, the code would look for the submodule commits in the superproject and (needlessly) fail when it couldn't find them. Signed-off-by: Sven Verdoolaege Acked-by: Linus Torvalds Signed-off-by: Junio C Hamano --- fetch.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/fetch.c b/fetch.c index 8e29d313f..6f1f420be 100644 --- a/fetch.c +++ b/fetch.c @@ -46,6 +46,9 @@ static int process_tree(struct tree *tree) while (tree_entry(&desc, &entry)) { struct object *obj = NULL; + /* submodule commits are not stored in the superproject */ + if (S_ISDIRLNK(entry.mode)) + continue; if (S_ISDIR(entry.mode)) { struct tree *tree = lookup_tree(entry.sha1); if (tree) -- 2.30.2