fix: harden repository refresh and server pull
ForgeFlow quality gate / quality (push) Canceled after 0s

This commit is contained in:
NuklearRabbit committed 2026-08-12 15:05:57 +02:00
1 parent bffad670ef
commit 38e221cbd1
21 files changed
+238 -39

No files matched your search

+6 -1
View File
@@ -3,7 +3,12 @@
function createUnraidAccessMethods({ shellQuote, path, bash, inventoryRemoteIdentity, checksSummary, crypto, parsePermissionInspection }) {
class UnraidAccessMethods {
serverGitRemote(repository, profile) {
const candidates = [repository.sshUrl, profile.cloneUrl, repository.preferredCloneUrl]
const candidates = [
repository.localStatus?.remoteUrl,
repository.sshUrl,
repository.preferredCloneUrl,
profile.cloneUrl,
]
.map((value) => String(value || "").trim())
.filter(Boolean);
const value = candidates.find((candidate) => /^ssh:\/\//i.test(candidate) || /^[^@\s]+@[^:\s]+:.+/.test(candidate));