mirror of
https://github.com/webfactory/ssh-agent.git
synced 2025-04-23 22:50:47 +00:00
Try "ssh://"-URLs as suggested in https://github.com/webfactory/ssh-agent/issues/30#issuecomment-756007264
This commit is contained in:
parent
99c7c405e3
commit
0f851344e9
3 changed files with 4 additions and 0 deletions
2
.github/workflows/demo.yml
vendored
2
.github/workflows/demo.yml
vendored
|
@ -54,5 +54,7 @@ jobs:
|
||||||
- run: |
|
- run: |
|
||||||
git clone https://github.com/mpdude/test-1.git test-1-http
|
git clone https://github.com/mpdude/test-1.git test-1-http
|
||||||
git clone git@github.com:mpdude/test-1.git test-1-git
|
git clone git@github.com:mpdude/test-1.git test-1-git
|
||||||
|
git clone ssh://git@github.com/mpdude/test-1.git test-1-git-ssh
|
||||||
git clone https://github.com/mpdude/test-2.git test-2-http
|
git clone https://github.com/mpdude/test-2.git test-2-http
|
||||||
git clone git@github.com:mpdude/test-2.git test-2-git
|
git clone git@github.com:mpdude/test-2.git test-2-git
|
||||||
|
git clone ssh://git@github.com/mpdude/test-2.git test-2-git-ssh
|
||||||
|
|
1
dist/index.js
vendored
1
dist/index.js
vendored
|
@ -190,6 +190,7 @@ try {
|
||||||
|
|
||||||
child_process.execSync(`git config --global --replace-all url."git@${sha256}:${ownerAndRepo}".insteadOf "https://github.com/${ownerAndRepo}"`);
|
child_process.execSync(`git config --global --replace-all url."git@${sha256}:${ownerAndRepo}".insteadOf "https://github.com/${ownerAndRepo}"`);
|
||||||
child_process.execSync(`git config --global --add url."git@${sha256}:${ownerAndRepo}".insteadOf "git@github.com:${ownerAndRepo}"`);
|
child_process.execSync(`git config --global --add url."git@${sha256}:${ownerAndRepo}".insteadOf "git@github.com:${ownerAndRepo}"`);
|
||||||
|
child_process.execSync(`git config --global --add url."git@${sha256}:${ownerAndRepo}".insteadOf "ssh://git@github.com/${ownerAndRepo}"`);
|
||||||
|
|
||||||
let sshConfig = `\nHost ${sha256}\n`
|
let sshConfig = `\nHost ${sha256}\n`
|
||||||
+ ` HostName github.com\n`
|
+ ` HostName github.com\n`
|
||||||
|
|
1
index.js
1
index.js
|
@ -73,6 +73,7 @@ try {
|
||||||
|
|
||||||
child_process.execSync(`git config --global --replace-all url."git@${sha256}:${ownerAndRepo}".insteadOf "https://github.com/${ownerAndRepo}"`);
|
child_process.execSync(`git config --global --replace-all url."git@${sha256}:${ownerAndRepo}".insteadOf "https://github.com/${ownerAndRepo}"`);
|
||||||
child_process.execSync(`git config --global --add url."git@${sha256}:${ownerAndRepo}".insteadOf "git@github.com:${ownerAndRepo}"`);
|
child_process.execSync(`git config --global --add url."git@${sha256}:${ownerAndRepo}".insteadOf "git@github.com:${ownerAndRepo}"`);
|
||||||
|
child_process.execSync(`git config --global --add url."git@${sha256}:${ownerAndRepo}".insteadOf "ssh://git@github.com/${ownerAndRepo}"`);
|
||||||
|
|
||||||
let sshConfig = `\nHost ${sha256}\n`
|
let sshConfig = `\nHost ${sha256}\n`
|
||||||
+ ` HostName github.com\n`
|
+ ` HostName github.com\n`
|
||||||
|
|
Loading…
Add table
Reference in a new issue