diff --git a/git_command.py b/git_command.py index 0893bff7..63b7b6f2 100644 --- a/git_command.py +++ b/git_command.py @@ -168,6 +168,9 @@ class GitCommand(object): if p is not None: s = p + ' ' + s _setenv(env, 'GIT_CONFIG_PARAMETERS', s) + if 'GIT_ALLOW_PROTOCOL' not in env: + _setenv(env, 'GIT_ALLOW_PROTOCOL', + 'file:git:http:https:ssh:persistent-http:persistent-https:sso') if project: if not cwd: