Skip to content

Commit 8a9e20a

Browse files
authored
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 actions/checkout#928 (comment), the path should not contain the `usr/` part, although for `ssh-add` and `ssh-agent`, it has to.
1 parent 0a7dc1c commit 8a9e20a

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

dist/cleanup.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -2835,7 +2835,7 @@ module.exports = (process.env['OS'] != 'Windows_NT') ? {
28352835
homePath: os.homedir(),
28362836
sshAgentCmd: 'c://progra~1//git//usr//bin//ssh-agent.exe',
28372837
sshAddCmd: 'c://progra~1//git//usr//bin//ssh-add.exe',
2838-
gitCmd: 'c://progra~1//git//usr//bin//git.exe'
2838+
gitCmd: 'c://progra~1//git//bin//git.exe'
28392839
};
28402840

28412841

dist/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -2914,7 +2914,7 @@ module.exports = (process.env['OS'] != 'Windows_NT') ? {
29142914
homePath: os.homedir(),
29152915
sshAgentCmd: 'c://progra~1//git//usr//bin//ssh-agent.exe',
29162916
sshAddCmd: 'c://progra~1//git//usr//bin//ssh-add.exe',
2917-
gitCmd: 'c://progra~1//git//usr//bin//git.exe'
2917+
gitCmd: 'c://progra~1//git//bin//git.exe'
29182918
};
29192919

29202920

paths.js

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

0 commit comments

Comments
 (0)