config: register git.blockdotgit

This commit is contained in:
Kevin Bullock 2017-10-24 14:14:25 -05:00
parent 301a4e431c
commit 4370391b2e
2 changed files with 4 additions and 1 deletions

View File

@ -63,6 +63,9 @@ def read_pkt_refs(proto):
CONFIG_DEFAULTS = {
'git': {
'blockdotgit': True,
},
}
hasconfigitems = False

View File

@ -56,7 +56,7 @@ def audit_git_path(ui, path):
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 "