changeset 1065:d37336a87b70

config: register git.intree
author Kevin Bullock <kbullock@ringworld.org>
date Tue, 24 Oct 2017 14:18:26 -0500
parents ae5759bf5bcd
children 78dc28eb4245
files hggit/compat.py hggit/git_handler.py
diffstat 2 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/hggit/compat.py
+++ b/hggit/compat.py
@@ -65,6 +65,7 @@
 CONFIG_DEFAULTS = {
     'git': {
         'blockdotgit': True,
+        'intree': None,
     },
 }
 
--- a/hggit/git_handler.py
+++ b/hggit/git_handler.py
@@ -105,7 +105,7 @@
         self.repo = dest_repo
         self.ui = ui
 
-        if ui.configbool('git', 'intree'):
+        if compat.config(ui, 'bool', 'git', 'intree'):
             self.gitdir = self.repo.wvfs.join('.git')
         else:
             self.gitdir = self.repo.vfs.join('git')