Skip to content

Commit

Permalink
Fix path to git binary on Windows runners (#140)
Browse files Browse the repository at this point in the history
This PR fixes an apparently wrong path to the `git` binary that was added in #136. 

According to actions/checkout#928 (comment), the path should not contain the `usr/` part, although for `ssh-add` and `ssh-agent`, it has to.
  • Loading branch information
mpdude committed Oct 19, 2022
1 parent 0a7dc1c commit 8a9e20a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dist/cleanup.js
Expand Up @@ -2835,7 +2835,7 @@ module.exports = (process.env['OS'] != 'Windows_NT') ? {
homePath: os.homedir(),
sshAgentCmd: 'c://progra~1//git//usr//bin//ssh-agent.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'
};


Expand Down
2 changes: 1 addition & 1 deletion dist/index.js
Expand Up @@ -2914,7 +2914,7 @@ module.exports = (process.env['OS'] != 'Windows_NT') ? {
homePath: os.homedir(),
sshAgentCmd: 'c://progra~1//git//usr//bin//ssh-agent.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'
};


Expand Down
2 changes: 1 addition & 1 deletion paths.js
Expand Up @@ -12,5 +12,5 @@ module.exports = (process.env['OS'] != 'Windows_NT') ? {
homePath: os.homedir(),
sshAgentCmd: 'c://progra~1//git//usr//bin//ssh-agent.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'
};

0 comments on commit 8a9e20a

Please sign in to comment.