diff --git a/dist/index.js b/dist/index.js index 39bef954..8d5f851d 100644 Binary files a/dist/index.js and b/dist/index.js differ diff --git a/dist/index.js.map b/dist/index.js.map index fe0ec21d..21d05ddf 100644 Binary files a/dist/index.js.map and b/dist/index.js.map differ diff --git a/src/model/cloud-runner/remote-client/index.ts b/src/model/cloud-runner/remote-client/index.ts index cdb6bcde..dc7808dc 100644 --- a/src/model/cloud-runner/remote-client/index.ts +++ b/src/model/cloud-runner/remote-client/index.ts @@ -232,9 +232,9 @@ export class RemoteClient { } // Clear any existing URL configurations - await CloudRunnerSystem.Run(`git config --global --unset-all url."https://github.com/".insteadOf`); - await CloudRunnerSystem.Run(`git config --global --unset-all url."ssh://git@github.com/".insteadOf`); - await CloudRunnerSystem.Run(`git config --global --unset-all url."git@github.com".insteadOf`); + await CloudRunnerSystem.Run(`git config --global --unset-all url."https://github.com/".insteadOf || true`); + await CloudRunnerSystem.Run(`git config --global --unset-all url."ssh://git@github.com/".insteadOf || true`); + await CloudRunnerSystem.Run(`git config --global --unset-all url."git@github.com".insteadOf || true`); // Set new URL configuration with token await CloudRunnerSystem.Run( @@ -262,9 +262,9 @@ export class RemoteClient { } // Clear any existing URL configurations - await CloudRunnerSystem.Run(`git config --global --unset-all url."https://github.com/".insteadOf`); - await CloudRunnerSystem.Run(`git config --global --unset-all url."ssh://git@github.com/".insteadOf`); - await CloudRunnerSystem.Run(`git config --global --unset-all url."git@github.com".insteadOf`); + await CloudRunnerSystem.Run(`git config --global --unset-all url."https://github.com/".insteadOf || true`); + await CloudRunnerSystem.Run(`git config --global --unset-all url."ssh://git@github.com/".insteadOf || true`); + await CloudRunnerSystem.Run(`git config --global --unset-all url."git@github.com".insteadOf || true`); // Set new URL configuration with token await CloudRunnerSystem.Run(