Fix PowerShell origin URL trimming for submodule checkout.
Some checks failed
Build / increment-version (push) Successful in 13s
Build / prepare-release (push) Successful in 13s
Build / build-linux (push) Successful in 2m44s
Build / build-windows (push) Failing after 3m22s
Build / finalize-release (push) Successful in 8s

This commit is contained in:
2026-07-24 16:19:51 +10:00
parent aa38348fdd
commit c2cc0d5ed5

View File

@@ -216,7 +216,9 @@ jobs:
run: | run: |
$ErrorActionPreference = "Stop" $ErrorActionPreference = "Stop"
# Use the same host/scheme the runner already used for origin (not public HTTPS). # Use the same host/scheme the runner already used for origin (not public HTTPS).
$origin = (git remote get-url origin).TrimEnd('/', '.git') $origin = (git remote get-url origin).Trim()
$origin = $origin.TrimEnd('/')
if ($origin.EndsWith('.git')) { $origin = $origin.Substring(0, $origin.Length - 4) }
$base = $origin.Substring(0, $origin.LastIndexOf('/')) $base = $origin.Substring(0, $origin.LastIndexOf('/'))
$cinnyUrl = "$base/cinny.git" $cinnyUrl = "$base/cinny.git"
Write-Host "Rewriting submodule URL to $cinnyUrl" Write-Host "Rewriting submodule URL to $cinnyUrl"