mirror of
https://github.com/facebook/sapling.git
synced 2024-10-11 17:27:53 +03:00
config: register git.blockdotgit
This commit is contained in:
parent
301a4e431c
commit
4370391b2e
@ -63,6 +63,9 @@ def read_pkt_refs(proto):
|
||||
|
||||
|
||||
CONFIG_DEFAULTS = {
|
||||
'git': {
|
||||
'blockdotgit': True,
|
||||
},
|
||||
}
|
||||
|
||||
hasconfigitems = False
|
||||
|
@ -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 "
|
||||
|
Loading…
Reference in New Issue
Block a user