Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
tutorial: Fix typo
[gitweb.git]
/
fetch.c
diff --git
a/fetch.c
b/fetch.c
index 8e29d313f817981a29ebb65f2f579c9f1bd8e9b6..6f1f420be26ac6dafec366b3dc0671fb7f4940dc 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_ISDIRLNK(entry.mode))
+ continue;
if (S_ISDIR(entry.mode)) {
struct tree *tree = lookup_tree(entry.sha1);
if (tree)