mirror of
https://github.com/git/git
synced 2024-08-27 19:49:21 +00:00
Merge branch 'tu/gc-auto-quiet'
"gc --auto" notified the user that auto-packing has triggered even under the "--quiet" option. * tu/gc-auto-quiet: silence git gc --auto --quiet output
This commit is contained in:
commit
9ac54d0f59
|
@ -217,9 +217,7 @@ int cmd_gc(int argc, const char **argv, const char *prefix)
|
|||
*/
|
||||
if (!need_to_gc())
|
||||
return 0;
|
||||
if (quiet)
|
||||
fprintf(stderr, _("Auto packing the repository for optimum performance.\n"));
|
||||
else
|
||||
if (!quiet)
|
||||
fprintf(stderr,
|
||||
_("Auto packing the repository for optimum performance. You may also\n"
|
||||
"run \"git gc\" manually. See "
|
||||
|
|
|
@ -174,8 +174,7 @@ test_expect_success 'receive-pack runs auto-gc in remote repo' '
|
|||
cd parent &&
|
||||
echo "Even more text" >>file.txt &&
|
||||
git commit -a -m "Third commit" &&
|
||||
git send-pack ../child HEAD:refs/heads/test_auto_gc >output 2>&1 &&
|
||||
grep "Auto packing the repository for optimum performance." output
|
||||
git send-pack ../child HEAD:refs/heads/test_auto_gc
|
||||
) &&
|
||||
test ! -e child/.git/objects/tmp_test_object
|
||||
'
|
||||
|
|
Loading…
Reference in a new issue