From: Sven Verdoolaege Date: Tue, 26 Jun 2007 21:19:41 +0000 (+0200) Subject: Ignore submodule commits when fetching over dumb protocols X-Git-Tag: v1.5.2.3~9 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=582c7393a47894ea299a82c2ae91fec3101e7559;p=git.git 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 --- 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)