]> Sergey Matveev's repositories - public-inbox.git/commitdiff
replace: quiet "git gc" invocation
authorEric Wong <e@80x24.org>
Thu, 28 Nov 2019 20:54:35 +0000 (20:54 +0000)
committerEric Wong <e@80x24.org>
Fri, 29 Nov 2019 01:56:24 +0000 (01:56 +0000)
Since we give users no indication or control of how "git gc"
runs, showing its progress is confusing.

lib/PublicInbox/Import.pm
lib/PublicInbox/V2Writable.pm

index cb25215d15c39665a9b61895ebed8f98618eba77..8a369ee44c99a5cb50a56d5af06afbe5a08873ad 100644 (file)
@@ -595,7 +595,7 @@ sub replace_oids {
 
        return if $nreplace == 0;
 
-       run_die([@git, qw(-c gc.reflogExpire=now gc --prune=all)]);
+       run_die([@git, qw(-c gc.reflogExpire=now gc --prune=all --quiet)]);
 
        # check that old OIDs are gone
        my $err = 0;
index 02f313b022c01dc7a52140016a4b1715a20f0f37..ab80941acb64431537b54029613bb42d62776f71 100644 (file)
@@ -1204,7 +1204,7 @@ sub unindex ($$$$) {
 
        # ensure any blob can not longer be accessed via dumb HTTP
        PublicInbox::Import::run_die(['git', "--git-dir=$git->{git_dir}",
-               qw(-c gc.reflogExpire=now gc --prune=all)]);
+               qw(-c gc.reflogExpire=now gc --prune=all --quiet)]);
 }
 
 sub sync_ranges ($$$) {