Fix again ssh key

This commit is contained in:
Guilhem Lavaux 2024-12-08 11:49:06 +01:00
parent 06dbfcc31d
commit e00236e7c3

View File

@ -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")