Fix again ssh key
This commit is contained in:
parent
06dbfcc31d
commit
e00236e7c3
@ -24,8 +24,8 @@ GIT_ENV = os.environ.copy()
|
|||||||
if GIT_AUTH_MODE == 'http':
|
if GIT_AUTH_MODE == 'http':
|
||||||
auth_option = []
|
auth_option = []
|
||||||
elif GIT_AUTH_MODE == 'ssh':
|
elif GIT_AUTH_MODE == 'ssh':
|
||||||
GIT_ENV["GIT_SSH_COMMAND"] = "ssh -i /ssh/ssh-key"
|
GIT_ENV["GIT_SSH_COMMAND"] = "ssh -i /ssh/ssh-key -o StrictHostKeyChecking=accept-new"
|
||||||
auth_option=['-o','StrictHostKeyChecking=accept-new']
|
auth_option=[]
|
||||||
else:
|
else:
|
||||||
raise ValueError("Invalid GIT_AUTH_MODE")
|
raise ValueError("Invalid GIT_AUTH_MODE")
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user