Mercurial > hg > hg-git
changeset 1064:ae5759bf5bcd
config: register git.blockdotgit
author | Kevin Bullock <kbullock@ringworld.org> |
---|---|
date | Tue, 24 Oct 2017 14:14:25 -0500 |
parents | c249de74742b |
children | d37336a87b70 |
files | hggit/compat.py hggit/hg2git.py |
diffstat | 2 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/hggit/compat.py +++ b/hggit/compat.py @@ -63,6 +63,9 @@ CONFIG_DEFAULTS = { + 'git': { + 'blockdotgit': True, + }, } hasconfigitems = False
--- a/hggit/hg2git.py +++ b/hggit/hg2git.py @@ -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 "