mirror of
https://github.com/clearml/clearml-agent
synced 2025-02-07 13:26:08 +00:00
Fix git unsafe directory issue (disable check on cached vcs folder)
This commit is contained in:
parent
6c7a639673
commit
335ef91d8e
@ -529,6 +529,13 @@ class Git(VCS):
|
|||||||
"GIT_SSH_COMMAND": "ssh -oBatchMode=yes",
|
"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
|
@staticmethod
|
||||||
def remote_branch_name(branch):
|
def remote_branch_name(branch):
|
||||||
return [
|
return [
|
||||||
|
Loading…
Reference in New Issue
Block a user