Git fork

perf: disable automatic housekeeping

Turn off automatic background maintenance for perf tests by default to
avoid interference with performance measurements. Do that by using the
new file t/perf/config and using it as the system config file for perf
tests. Future tests intended to measure gc performance can override
the setting locally or call "git gc" explicitly.

This fixes a breakage in p2000 caused by gc automatically emptying the
reflog due its fake dates from 2005 being older than 90 days.

Helped-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: René Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

authored by

René Scharfe and committed by
Junio C Hamano
be79131a 225bc32a

+6
+2
t/perf/config
··· 1 + [gc] 2 + auto = 0
+4
t/perf/perf-lib.sh
··· 27 27 28 28 . ../test-lib.sh 29 29 30 + unset GIT_CONFIG_NOSYSTEM 31 + GIT_CONFIG_SYSTEM="$TEST_DIRECTORY/perf/config" 32 + export GIT_CONFIG_SYSTEM 33 + 30 34 if test -n "$GIT_TEST_INSTALLED" -a -z "$PERF_SET_GIT_TEST_INSTALLED" 31 35 then 32 36 error "Do not use GIT_TEST_INSTALLED with the perf tests.