Change abort_on_repo_init_err() to take Value instead of Option<Value>
This commit is contained in:
parent
4a0def0ede
commit
73c0f080ac
1 changed files with 2 additions and 2 deletions
|
@ -115,8 +115,8 @@ pub fn commit_message(repo: &Repository, config: &Value, action: StoreAction, id
|
|||
}
|
||||
|
||||
/// Check whether the hook should abort if the repository cannot be initialized
|
||||
pub fn abort_on_repo_init_err(cfg: Option<&Value>) -> bool {
|
||||
get_bool_cfg(cfg, "abort_on_repo_init_failure", true, true)
|
||||
pub fn abort_on_repo_init_err(cfg: &Value) -> bool {
|
||||
get_bool_cfg(Some(cfg), "abort_on_repo_init_failure", true, true)
|
||||
}
|
||||
|
||||
/// Get the branch which must be checked out before running the hook (if any).
|
||||
|
|
Loading…
Reference in a new issue