diff --git a/libimagstorestdhook/src/vcs/git/update.rs b/libimagstorestdhook/src/vcs/git/update.rs index 4a5026d0..388a1929 100644 --- a/libimagstorestdhook/src/vcs/git/update.rs +++ b/libimagstorestdhook/src/vcs/git/update.rs @@ -9,21 +9,24 @@ use libimagstore::hook::position::HookPosition; use libimagstore::hook::accessor::{HookDataAccessor, HookDataAccessorProvider}; use libimagstore::hook::accessor::StoreIdAccessor; +use vcs::git::runtime::Runtime as GRuntime; + #[derive(Debug)] pub struct UpdateHook { storepath: PathBuf, + runtime: GRuntime, + position: HookPosition, - config: Option, } impl UpdateHook { pub fn new(storepath: PathBuf, p: HookPosition) -> UpdateHook { UpdateHook { + runtime: GRuntime::new(&storepath), storepath: storepath, position: p, - config: None, } }