path: root/t/
diff options
authorNguyễn Thái Ngọc Duy <>2014-02-08 07:08:52 (GMT)
committerJunio C Hamano <>2014-02-10 18:46:37 (GMT)
commit9f673f9477c63433aa0774c11b9e42979721f4d6 (patch)
tree866fe2aba1898f77e4cfb43d46d19db885fe1f5e /t/
parentde0957ce2e88b8ad639f1e4a7197eb556e114a1c (diff)
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 <> Signed-off-by: Junio C Hamano <>
Diffstat (limited to 't/')
1 files changed, 1 insertions, 0 deletions
diff --git a/t/ b/t/
index 129fc88..0736bcb 100755
--- a/t/
+++ b/t/
@@ -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