OSDN Git Service
(root)
/
git-core
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7654286
)
gc: fix off-by-one error with gc.autoPackLimit
author
Eric Wong
<e@80x24.org>
Sat, 25 Jun 2016 06:46:47 +0000
(06:46 +0000)
committer
Junio C Hamano
<gitster@pobox.com>
Mon, 27 Jun 2016 15:28:47 +0000
(08:28 -0700)
This matches the documentation and allows gc.autoPackLimit=1
to maintain a single pack without attempting a repack on every
"git gc --auto" invocation.
Signed-off-by: Eric Wong <e@80x24.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/gc.c
patch
|
blob
|
history
diff --git
a/builtin/gc.c
b/builtin/gc.c
index
5c634af
..
15e2780
100644
(file)
--- a/
builtin/gc.c
+++ b/
builtin/gc.c
@@
-145,7
+145,7
@@
static int too_many_packs(void)
*/
cnt++;
}
- return gc_auto_pack_limit <
=
cnt;
+ return gc_auto_pack_limit < cnt;
}
static void add_repack_all_option(void)