fix ssh redirgithub
This commit is contained in:
@@ -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"
|
||||
|
||||
|
||||
@@ -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"
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user