aboutsummaryrefslogtreecommitdiff
path: root/t/t5400-send-pack.sh
diff options
context:
space:
mode:
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>2014-02-08 14:08:52 +0700
committerJunio C Hamano <gitster@pobox.com>2014-02-10 10:46:37 -0800
commit9f673f9477c63433aa0774c11b9e42979721f4d6 (patch)
tree866fe2aba1898f77e4cfb43d46d19db885fe1f5e /t/t5400-send-pack.sh
parentde0957ce2e88b8ad639f1e4a7197eb556e114a1c (diff)
downloadgit-9f673f9477c63433aa0774c11b9e42979721f4d6.tar.gz
git-9f673f9477c63433aa0774c11b9e42979721f4d6.tar.xz
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-xt/t5400-send-pack.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/t/t5400-send-pack.sh b/t/t5400-send-pack.sh
index 129fc88bd..0736bcbcd 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