Fix git unsafe directory issue (disable check on cached vcs folder)

This commit is contained in:
allegroai 2022-05-05 12:22:40 +03:00
parent 6c7a639673
commit 335ef91d8e

View File

@ -529,6 +529,13 @@ class Git(VCS):
"GIT_SSH_COMMAND": "ssh -oBatchMode=yes",
}
def __init__(self, *args, **kwargs):
super(Git, self).__init__(*args, **kwargs)
try:
self.call("config", "--global", "--replace-all", "safe.directory", "*", cwd=self.location)
except: # noqa
pass
@staticmethod
def remote_branch_name(branch):
return [