summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 07cf0f2)
raw | patch | inline | side by side (parent: 07cf0f2)
author | Junio C Hamano <gitster@pobox.com> | |
Thu, 4 Feb 2010 02:27:08 +0000 (18:27 -0800) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Thu, 4 Feb 2010 17:09:50 +0000 (09:09 -0800) |
Manual merge made at 844ad3d (Merge branch 'sp/maint-fast-import-large-blob'
into sp/fast-import-large-blob, 2010-02-01) did not correctly reflect the change
of unit in which this variable's value is counted from its previous version.
Now it counts in bytes, not in megabytes.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Acked-by: Shawn O. Pearce <spearce@spearce.org>
into sp/fast-import-large-blob, 2010-02-01) did not correctly reflect the change
of unit in which this variable's value is counted from its previous version.
Now it counts in bytes, not in megabytes.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Acked-by: Shawn O. Pearce <spearce@spearce.org>
fast-import.c | patch | blob | history |
diff --git a/fast-import.c b/fast-import.c
index ca210822dbe88ce82d6eaf9d435dd68561e90c9f..a6730d0baceee3d9c7622697a48e3ee8f7470618 100644 (file)
--- a/fast-import.c
+++ b/fast-import.c
if (!prefixcmp(option, "max-pack-size=")) {
option_max_pack_size(option + 14);
} else if (!prefixcmp(option, "big-file-threshold=")) {
- big_file_threshold = strtoumax(option + 19, NULL, 0) * 1024 * 1024;
+ unsigned long v;
+ if (!git_parse_ulong(option + 19, &v))
+ return 0;
+ big_file_threshold = v;
} else if (!prefixcmp(option, "depth=")) {
option_depth(option + 6);
} else if (!prefixcmp(option, "active-branches=")) {