Skip to content

The agent that grows with you

fix ssh redirgithub

ethernet1ae3961d3adb
diff --git a/tests/install/installer-script-e2e.sh b/tests/install/installer-script-e2e.sh
index ec553fc0c25..ae732843de9 100755
--- a/tests/install/installer-script-e2e.sh
+++ b/tests/install/installer-script-e2e.sh
@@ -132,6 +132,8 @@ arm_redirect() {
cat > "$GIT_CFG" <<EOF
[url "file://$SERVE_REPO"]
insteadOf = $actual_git_url
+ insteadOf = $REPO_URL_HTTPS
+ insteadOf = $REPO_URL_SSH
EOF
export GIT_CONFIG_GLOBAL="$GIT_CFG"
diff --git a/tests/install/macos-desktop-e2e.sh b/tests/install/macos-desktop-e2e.sh
index da86c117f89..7eb374fc8ae 100755
--- a/tests/install/macos-desktop-e2e.sh
+++ b/tests/install/macos-desktop-e2e.sh
@@ -94,6 +94,8 @@ arm_redirect() {
cat > "$GIT_CFG" <<EOF
[url "file://$SERVE_REPO"]
insteadOf = $actual_git_url
+ insteadOf = $REPO_URL_HTTPS
+ insteadOf = $REPO_URL_SSH
EOF
export GIT_CONFIG_GLOBAL="$GIT_CFG"
diff --git a/tests/install/windows-e2e.ps1 b/tests/install/windows-e2e.ps1
index 140538a2a74..3480b628a9b 100644
--- a/tests/install/windows-e2e.ps1
+++ b/tests/install/windows-e2e.ps1
@@ -186,6 +186,8 @@ function Set-GitRedirect {
@"
[url "$fileUrl"]
insteadOf = $actualGitUrl
+ insteadOf = $RepoUrlHttps
+ insteadOf = $RepoUrlSsh
"@ | Set-Content -LiteralPath $gitCfg -Encoding ASCII
$env:GIT_CONFIG_GLOBAL = $gitCfg