Skip to content

Commit

Permalink
Ignore submodule commits when fetching over dumb protocols
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Sven Verdoolaege authored and gitster committed Jun 27, 2007
1 parent c7c8485 commit 582c739
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions fetch.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 582c739

Please sign in to comment.