X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=fetch.c;h=811be87a3c1e0d14d9f2b37650d56575b49caa22;hb=9d25acc49a98ca82988ad871753a45e41f3c90f5;hp=dda33e548b65e79e22de8a84ab4d67ef13387a05;hpb=9bfe9f80b1f57dd5bd63c94516fb8aa820fef1cd;p=git.git diff --git a/fetch.c b/fetch.c index dda33e548..811be87a3 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_ISGITLINK(entry.mode)) + continue; if (S_ISDIR(entry.mode)) { struct tree *tree = lookup_tree(entry.sha1); if (tree)