git-next/crates/git/src/fetch.rs
Paul Campbell 58e991b2b7
All checks were successful
Rust / build (push) Successful in 2m35s
ci/woodpecker/push/tag-created Pipeline was successful
ci/woodpecker/push/push-next Pipeline was successful
test(git): make repository more testable
Adds a layer around Repository to allow the use of a mock.

Mock has still to be implemented.
2024-05-18 20:37:03 +01:00

9 lines
198 B
Rust

#[derive(Debug, derive_more::Display)]
pub enum Error {
UnableToOpenRepo(String),
NoFetchRemoteFound,
Connect(String),
Fetch(String),
Lock,
}
impl std::error::Error for Error {}