From: Zoran Zaric Date: Thu, 27 Sep 2012 13:15:55 +0000 (+0200) Subject: Enable the reflog when initializing the repository. X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=bdc3031625ec7ae1f37a11dad3b58e9befd23217;p=packages%2Fb%2Fbup.git Enable the reflog when initializing the repository. Avery noticed that this wasn't being done for bare repositories, so ask for it explicitly. Reported-by: Avery Pennarun Signed-off-by: Zoran Zaric Reviewed-by: Rob Browning --- diff --git a/lib/bup/git.py b/lib/bup/git.py index 5cb2829..8afe0b8 100644 --- a/lib/bup/git.py +++ b/lib/bup/git.py @@ -830,6 +830,10 @@ def init_repo(path=None): p = subprocess.Popen(['git', 'config', 'pack.indexVersion', '2'], stdout=sys.stderr, preexec_fn = _gitenv) _git_wait('git config', p) + # Enable the reflog + p = subprocess.Popen(['git', 'config', 'core.logAllRefUpdates', 'true'], + stdout=sys.stderr, preexec_fn = _gitenv) + _git_wait('git config', p) def check_repo_or_die(path=None):