@matheusbsbs / matheus-bagliano / commits / 582c7393a4
Fork 0

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 <skimo@liacs.nl> Acked-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Sven Verdoolaege committed Jun 26, 2007 at 23:19 UTC 582c7393a47894ea299a82c2ae91fec3101e7559
1 file changed +3
fetch.c
+3
@@ -46,6 +46,9 @@ static int process_tree(struct tree *tree)
46 while (tree_entry(&desc, &entry)) {
47 struct object *obj = NULL;
48
49 + /* submodule commits are not stored in the superproject */
50 + if (S_ISDIRLNK(entry.mode))
51 + continue;
52 if (S_ISDIR(entry.mode)) {
53 struct tree *tree = lookup_tree(entry.sha1);
54 if (tree)