summaryrefslogtreecommitdiff
path: root/upload-pack.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@g5.osdl.org>2005-07-06 00:19:20 (GMT)
committerLinus Torvalds <torvalds@g5.osdl.org>2005-07-06 00:19:20 (GMT)
commit319aae27567f3ddc40e9083c425f7eaf567006a0 (patch)
tree1c223cf58c7f8f73dac3f289ec1e2dab6b178751 /upload-pack.c
parent0271611e390c3aaacc4f4f0529c10c7b095ed682 (diff)
downloadgit-319aae27567f3ddc40e9083c425f7eaf567006a0.zip
git-319aae27567f3ddc40e9083c425f7eaf567006a0.tar.gz
git-319aae27567f3ddc40e9083c425f7eaf567006a0.tar.bz2
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.
Diffstat (limited to 'upload-pack.c')
-rw-r--r--upload-pack.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/upload-pack.c b/upload-pack.c
index 9edbf51..6d844cc 100644
--- a/upload-pack.c
+++ b/upload-pack.c
@@ -5,7 +5,7 @@
static const char upload_pack_usage[] = "git-upload-pack <dir>";
#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];