From: Linus Torvalds Date: Wed, 6 Jul 2005 00:19:20 +0000 (-0700) Subject: Increase the number of possible heads requested from git-upload-pack X-Git-Tag: v0.99~62 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=319aae27567f3ddc40e9083c425f7eaf567006a0;p=git.git Increase the number of possible heads requested from git-upload-pack Now that git-clone-pack exists, we actually have somebody requesting more than just a single head in a pack. So allow the Jeff's of this world to clone things with tens of heads. --- diff --git a/upload-pack.c b/upload-pack.c index 9edbf51d..6d844cc3 100644 --- a/upload-pack.c +++ b/upload-pack.c @@ -5,7 +5,7 @@ static const char upload_pack_usage[] = "git-upload-pack "; #define MAX_HAS (16) -#define MAX_NEEDS (16) +#define MAX_NEEDS (256) static int nr_has = 0, nr_needs = 0; static unsigned char has_sha1[MAX_HAS][20]; static unsigned char needs_sha1[MAX_NEEDS][20];