Skip to content
Snippets Groups Projects
Commit a3801b41a4d6 authored by Georges Racinet's avatar Georges Racinet
Browse files

RHGitaly existing_default_gitlab_branch: returning lower-level error

All error cases in this function were actually `StateFileError`. It
is true it can be transparently converted to `RefError` but the latter
will be inappropriate in the upcoming `ListRefs` inner implementation,
where `StateFileError` is the only considered one.
parent 30fba2ff01b3
No related branches found
No related tags found
2 merge requests!245Update MSRV to 1.73 and merge stable,!244RHGitaly ListRefs implementation
......@@ -111,7 +111,7 @@
pub async fn existing_default_gitlab_branch(
store_vfs: &Path,
) -> Result<Option<(Vec<u8>, Node)>, RefError> {
) -> Result<Option<(Vec<u8>, Node)>, StateFileError> {
match get_gitlab_default_branch(store_vfs).await? {
None => {
info!("No GitLab default branch");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment