Correct max_packsize default in fast-import.
Apparently amd64 has defined 'unsigned long' to be a 64 bit value, which means -1 was way over the 4 GiB packfile limit. Whoops. Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Shawn O. Pearce committed
Jan 16, 2007 at 04:25 UTC
eec11c24840bfc5293a80fed3c3b1e5bc10ac453
1 file changed
+1
-1
fast-import.c
+1
-1
@@ -217,7 +217,7 @@ struct hash_list
217
218
/* Configured limits on output */
219
static unsigned long max_depth = 10;
220
-static unsigned long max_packsize = -1;
220
+static unsigned long max_packsize = (1LL << 32) - 1;
221
static uintmax_t max_objects = -1;
222
223
/* Stats and misc. counters */