diff options
-rw-r--r-- | builtin-gc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/builtin-gc.c b/builtin-gc.c index 8ea165aef1..45025fba30 100644 --- a/builtin-gc.c +++ b/builtin-gc.c @@ -17,11 +17,11 @@ static const char builtin_gc_usage[] = "git-gc [--prune] [--aggressive]"; -static int pack_refs = -1; +static int pack_refs = 1; static int aggressive_window = -1; #define MAX_ADD 10 -static const char *argv_pack_refs[] = {"pack-refs", "--prune", NULL}; +static const char *argv_pack_refs[] = {"pack-refs", "--all", "--prune", NULL}; static const char *argv_reflog[] = {"reflog", "expire", "--all", NULL}; static const char *argv_repack[MAX_ADD] = {"repack", "-a", "-d", "-l", NULL}; static const char *argv_prune[] = {"prune", NULL}; |