summaryrefslogtreecommitdiff
path: root/Hutch/Views/SystemStatus/SystemStatusView.swift
diff options
context:
space:
mode:
authorChristian Cleberg <[email protected]>2026-04-13 17:35:37 -0500
committerChristian Cleberg <[email protected]>2026-04-13 17:35:37 -0500
commit30decf6d9b6b95277cbd8b8a7d9e23d9ce5413ca (patch)
tree8ba13d62083d7c3555bd250e5cefe416eb698d31 /Hutch/Views/SystemStatus/SystemStatusView.swift
parent5e63048ab6a741ae947f7fe42efcb5206a3f3963 (diff)
downloadhutch-30decf6d9b6b95277cbd8b8a7d9e23d9ce5413ca.tar.gz
hutch-30decf6d9b6b95277cbd8b8a7d9e23d9ce5413ca.tar.bz2
hutch-30decf6d9b6b95277cbd8b8a7d9e23d9ce5413ca.zip
fix: show empty state for bare git repos instead of an error
git.sr.ht returns "internal system error" from the references query and "reference not found" from the log/readme queries when a repo has no commits. Broaden isEmptyRepositoryError to cover missingReference, unknownRevision, noRows, notFound, and those two message strings, then apply the same silent-empty treatment to loadReferences and loadArtifacts (which previously surfaced any error directly to the user). Fixes: https://todo.sr.ht/~ccleberg/hutch/60
Diffstat (limited to 'Hutch/Views/SystemStatus/SystemStatusView.swift')
0 files changed, 0 insertions, 0 deletions