summaryrefslogtreecommitdiff
path: root/fast-import.c
diff options
context:
space:
mode:
authorShawn O. Pearce <spearce@spearce.org>2007-01-16 09:25:12 (GMT)
committerShawn O. Pearce <spearce@spearce.org>2007-01-16 09:25:12 (GMT)
commiteec11c24840bfc5293a80fed3c3b1e5bc10ac453 (patch)
tree6537c7248d286528621ac9d1336ddf20298f2bc5 /fast-import.c
parent0fcbcae75372f96539ba0f9598112c417d81ab0d (diff)
downloadgit-eec11c24840bfc5293a80fed3c3b1e5bc10ac453.zip
git-eec11c24840bfc5293a80fed3c3b1e5bc10ac453.tar.gz
git-eec11c24840bfc5293a80fed3c3b1e5bc10ac453.tar.bz2
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>
Diffstat (limited to 'fast-import.c')
-rw-r--r--fast-import.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fast-import.c b/fast-import.c
index 281b8f6..8342314 100644
--- a/fast-import.c
+++ b/fast-import.c
@@ -217,7 +217,7 @@ struct hash_list
/* Configured limits on output */
static unsigned long max_depth = 10;
-static unsigned long max_packsize = -1;
+static unsigned long max_packsize = (1LL << 32) - 1;
static uintmax_t max_objects = -1;
/* Stats and misc. counters */