diff --git a/packages/web/server/lib/git/service.js b/packages/web/server/lib/git/service.js index 1f6b80c3..088155eb 100644 --- a/packages/web/server/lib/git/service.js +++ b/packages/web/server/lib/git/service.js @@ -357,9 +357,9 @@ const createGit = async (directory, { allowUnsafeSshCommand = false, allowUnsafe const spawnOptions = { windowsHide: true }; const binary = getGitBinary(); const hasCustomBinary = typeof binary === 'string' && binary.trim() && binary !== 'git' && binary !== 'git.exe'; - const unsafe = hasCustomBinary || allowUnsafeSshCommand + const unsafe = hasCustomBinary || allowUnsafeSshCommand || allowUnsafeCredentialHelper ? { - ...(hasCustomBinary && { allowUnsafeCustomBinary: true }), + ...(hasCustomBinary && { allowUnsafeCustomBinary: true }), ...(allowUnsafeSshCommand && { allowUnsafeSshCommand: true }), ...(allowUnsafeCredentialHelper && { allowUnsafeCredentialHelper: true }), }