diff options
| author | Christian Cleberg <[email protected]> | 2026-04-13 17:35:37 -0500 |
|---|---|---|
| committer | Christian Cleberg <[email protected]> | 2026-04-13 17:35:37 -0500 |
| commit | 30decf6d9b6b95277cbd8b8a7d9e23d9ce5413ca (patch) | |
| tree | 8ba13d62083d7c3555bd250e5cefe416eb698d31 /Hutch/Views/Projects/ProjectsListView.swift | |
| parent | 5e63048ab6a741ae947f7fe42efcb5206a3f3963 (diff) | |
| download | hutch-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/Projects/ProjectsListView.swift')
0 files changed, 0 insertions, 0 deletions
