projects
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0fcbcae
)
Correct max_packsize default in fast-import.
author
Shawn O. Pearce
<spearce@spearce.org>
Tue, 16 Jan 2007 09:25:12 +0000
(
04:25
-0500)
committer
Shawn O. Pearce
<spearce@spearce.org>
Tue, 16 Jan 2007 09:25:12 +0000
(
04:25
-0500)
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>
fast-import.c
patch
|
blob
|
history
diff --git
a/fast-import.c
b/fast-import.c
index 281b8f6a5ef2ad9c8dd83150ceb5dcf3cfd0d52d..8342314bb0ee80f50315555aafa5eb46eeac5ef8 100644
(file)
--- 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 */