X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lib%2Fbup%2Fgit.py;h=8afe0b8e17ba5d7b21a494f2854dbbcd8431e594;hb=bdc3031625ec7ae1f37a11dad3b58e9befd23217;hp=5cb282922c392169dffc6bb9083ae441be606256;hpb=6ab47bb8af89861d250e2a4fc2e053c52aa5a9fc;p=bup.git 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):