Fix path to git binary on Windows runners (#140)

This PR fixes an apparently wrong path to the `git` binary that was added in #136. 

According to https://github.com/actions/checkout/discussions/928#discussioncomment-3861581, the path should not contain the `usr/` part, although for `ssh-add` and `ssh-agent`, it has to.
This commit is contained in:
Matthias Pigulla 2022-10-19 14:55:54 +02:00 committed by GitHub
parent 0a7dc1c09f
commit 8a9e20a586
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

2
dist/cleanup.js vendored
View file

@ -2835,7 +2835,7 @@ module.exports = (process.env['OS'] != 'Windows_NT') ? {
homePath: os.homedir(), homePath: os.homedir(),
sshAgentCmd: 'c://progra~1//git//usr//bin//ssh-agent.exe', sshAgentCmd: 'c://progra~1//git//usr//bin//ssh-agent.exe',
sshAddCmd: 'c://progra~1//git//usr//bin//ssh-add.exe', sshAddCmd: 'c://progra~1//git//usr//bin//ssh-add.exe',
gitCmd: 'c://progra~1//git//usr//bin//git.exe' gitCmd: 'c://progra~1//git//bin//git.exe'
}; };

2
dist/index.js vendored
View file

@ -2914,7 +2914,7 @@ module.exports = (process.env['OS'] != 'Windows_NT') ? {
homePath: os.homedir(), homePath: os.homedir(),
sshAgentCmd: 'c://progra~1//git//usr//bin//ssh-agent.exe', sshAgentCmd: 'c://progra~1//git//usr//bin//ssh-agent.exe',
sshAddCmd: 'c://progra~1//git//usr//bin//ssh-add.exe', sshAddCmd: 'c://progra~1//git//usr//bin//ssh-add.exe',
gitCmd: 'c://progra~1//git//usr//bin//git.exe' gitCmd: 'c://progra~1//git//bin//git.exe'
}; };

View file

@ -12,5 +12,5 @@ module.exports = (process.env['OS'] != 'Windows_NT') ? {
homePath: os.homedir(), homePath: os.homedir(),
sshAgentCmd: 'c://progra~1//git//usr//bin//ssh-agent.exe', sshAgentCmd: 'c://progra~1//git//usr//bin//ssh-agent.exe',
sshAddCmd: 'c://progra~1//git//usr//bin//ssh-add.exe', sshAddCmd: 'c://progra~1//git//usr//bin//ssh-add.exe',
gitCmd: 'c://progra~1//git//usr//bin//git.exe' gitCmd: 'c://progra~1//git//bin//git.exe'
}; };