fix(git): honor standalone credential-helper permission

Complete the createGit option handling introduced in #3383.
This commit is contained in:
Bohdan Triapitsyn
2026-09-07 20:37:47 +03:00
parent cffd903f56
commit c82aa7879b
+2 -2
View File
@@ -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 }),
}