Add Runtime for UpdateHook
This commit is contained in:
parent
ced6342d01
commit
c9c535f46c
1 changed files with 5 additions and 2 deletions
|
@ -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<Value>,
|
||||
}
|
||||
|
||||
impl UpdateHook {
|
||||
|
||||
pub fn new(storepath: PathBuf, p: HookPosition) -> UpdateHook {
|
||||
UpdateHook {
|
||||
runtime: GRuntime::new(&storepath),
|
||||
storepath: storepath,
|
||||
position: p,
|
||||
config: None,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue