diff options
author | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | 2014-02-08 14:08:52 +0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2014-02-10 10:46:37 -0800 |
commit | 9f673f9477c63433aa0774c11b9e42979721f4d6 (patch) | |
tree | 866fe2aba1898f77e4cfb43d46d19db885fe1f5e /t/t5400-send-pack.sh | |
parent | de0957ce2e88b8ad639f1e4a7197eb556e114a1c (diff) | |
download | git-9f673f9477c63433aa0774c11b9e42979721f4d6.tar.gz |
gc: config option for running --auto in background
`gc --auto` takes time and can block the user temporarily (but not any
less annoyingly). Make it run in background on systems that support
it. The only thing lost with running in background is printouts. But
gc output is not really interesting. You can keep it in foreground by
changing gc.autodetach.
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t5400-send-pack.sh')
-rwxr-xr-x | t/t5400-send-pack.sh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/t/t5400-send-pack.sh b/t/t5400-send-pack.sh index 129fc88bd2..0736bcbcd5 100755 --- a/t/t5400-send-pack.sh +++ b/t/t5400-send-pack.sh @@ -164,6 +164,7 @@ test_expect_success 'receive-pack runs auto-gc in remote repo' ' # Set the child to auto-pack if more than one pack exists cd child && git config gc.autopacklimit 1 && + git config gc.autodetach false && git branch test_auto_gc && # And create a file that follows the temporary object naming # convention for the auto-gc to remove |