diff --git a/libimagstorestdhook/src/vcs/git/runtime.rs b/libimagstorestdhook/src/vcs/git/runtime.rs index 44255613..663c1d2e 100644 --- a/libimagstorestdhook/src/vcs/git/runtime.rs +++ b/libimagstorestdhook/src/vcs/git/runtime.rs @@ -65,5 +65,9 @@ impl<'a> Runtime<'a> { }) } + pub fn repository(&self) -> Result<&Repository> { + self.repository.as_ref().ok_or(GHEK::MkRepo.into_error()) + } + }