# HG changeset patch # User Kevin Bullock # Date 1508872465 18000 # Node ID ae5759bf5bcd8bf224933f3b83338694b5e9708e # Parent c249de74742b3cf2d90582c3f6407a4daf442e26 config: register git.blockdotgit diff -r c249de74742b -r ae5759bf5bcd hggit/compat.py --- a/hggit/compat.py Wed Nov 01 20:05:44 2017 -0500 +++ b/hggit/compat.py Tue Oct 24 14:14:25 2017 -0500 @@ -63,6 +63,9 @@ CONFIG_DEFAULTS = { + 'git': { + 'blockdotgit': True, + }, } hasconfigitems = False diff -r c249de74742b -r ae5759bf5bcd hggit/hg2git.py --- a/hggit/hg2git.py Wed Nov 01 20:05:44 2017 -0500 +++ b/hggit/hg2git.py Tue Oct 24 14:14:25 2017 -0500 @@ -56,7 +56,7 @@ dangerous = True break if dangerous: - if ui.configbool('git', 'blockdotgit', True): + if compat.config(ui, 'bool', 'git', 'blockdotgit'): raise hgutil.Abort( ('Refusing to export likely-dangerous path %r' % path), hint=("If you need to continue, read about CVE-2014-9390 and "