Remove SSH insteadOf rewrite from git-ssh-init.sh
Gitea's SSH server is disabled (START_SSH_SERVER=false) so the SSH URL rewrite breaks git HTTPS clones in build containers. HTTPS git ops work directly from Legion host network — Cloudflare bypasses CF Access for smart-HTTP and release asset paths.
This commit is contained in:
@@ -40,9 +40,9 @@ EOF
|
||||
# Point SSH at our per-job config (merge with any existing config if present)
|
||||
export GIT_SSH_COMMAND="ssh -F ~/.ssh/gitea_config"
|
||||
|
||||
# Rewrite HTTPS Gitea URLs → SSH so `actions/checkout` and plain `git clone`
|
||||
# both go through SSH without any HTTPS credential or CF Access token needed
|
||||
git config --global \
|
||||
url."git@git.neuralplatform.ai:".insteadOf \
|
||||
"https://git.neuralplatform.ai/" 2>/dev/null || true
|
||||
# NOTE: Do NOT add url.insteadOf SSH rewrite here.
|
||||
# Gitea's built-in SSH server is disabled (START_SSH_SERVER=false) so
|
||||
# SSH git clones would fail. HTTPS git operations work directly from
|
||||
# the build container host network — Cloudflare bypasses the CF Access
|
||||
# gate for git smart-HTTP and release asset paths.
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user