]> arthur.barton.de Git - bup.git/blobdiff - lib/bup/git.py
Enable the reflog when initializing the repository.
[bup.git] / lib / bup / git.py
index 5cb282922c392169dffc6bb9083ae441be606256..8afe0b8e17ba5d7b21a494f2854dbbcd8431e594 100644 (file)
@@ -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):