Fix git pull

This commit is contained in:
Guilhem Lavaux 2024-12-08 11:00:48 +01:00
parent 1096913741
commit 4b181dd461

View File

@ -22,7 +22,7 @@ GIT_AUTH_MODE = os.environ['GIT_AUTH_MODE']
if GIT_AUTH_MODE == 'http': if GIT_AUTH_MODE == 'http':
auth_option = [] auth_option = []
elif GIT_AUTH_MODE == 'ssh': elif GIT_AUTH_MODE == 'ssh':
auth_option = ['--config core.sshCommand="ssh -i /ssh/ssh-key" -o StrictHostKeyChecking=accept-new'] auth_option = ['--config','core.sshCommand="ssh -i /ssh/ssh-key"','-o','StrictHostKeyChecking=accept-new']
else: else:
raise ValueError("Invalid GIT_AUTH_MODE") raise ValueError("Invalid GIT_AUTH_MODE")