summaryrefslogtreecommitdiffstats
path: root/libimagstorestdhook/src
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2016-09-18 18:47:40 +0200
committerMatthias Beyer <mail@beyermatthias.de>2016-09-19 09:28:22 +0200
commit73c0f080ac445617b0ba65db2cbe69fcbc872327 (patch)
tree9eeacd3acdb07aa6177b398855df8286751ffc59 /libimagstorestdhook/src
parent4a0def0ede9c94609999f6e93cad5c9e25373c48 (diff)
Change abort_on_repo_init_err() to take Value instead of Option<Value>
Diffstat (limited to 'libimagstorestdhook/src')
-rw-r--r--libimagstorestdhook/src/vcs/git/config.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/libimagstorestdhook/src/vcs/git/config.rs b/libimagstorestdhook/src/vcs/git/config.rs
index c18b8cb1..db1a4d3d 100644
--- a/libimagstorestdhook/src/vcs/git/config.rs
+++ b/libimagstorestdhook/src/vcs/git/config.rs
@@ -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).