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':
|
||||
auth_option = []
|
||||
elif GIT_AUTH_MODE == 'ssh':
|
||||
GIT_ENV["GIT_SSH_COMMAND"] = "ssh -i /ssh/ssh-key"
|
||||
auth_option=['-o','StrictHostKeyChecking=accept-new']
|
||||
GIT_ENV["GIT_SSH_COMMAND"] = "ssh -i /ssh/ssh-key -o StrictHostKeyChecking=accept-new"
|
||||
auth_option=[]
|
||||
else:
|
||||
raise ValueError("Invalid GIT_AUTH_MODE")
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user