Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
apply: get rid of --index-info in favor of --build-fake-ancestor
[gitweb.git]
/
fetch.c
diff --git
a/fetch.c
b/fetch.c
index dda33e548b65e79e22de8a84ab4d67ef13387a05..811be87a3c1e0d14d9f2b37650d56575b49caa22 100644
(file)
--- 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)