From 6444f95b58e4fcf9adc56e0b4d1f7a06ef08055d Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Wed, 7 Sep 2016 20:54:57 +0200 Subject: [PATCH] Reimplement Hook::set_config() for UpdateHook --- libimagstorestdhook/src/vcs/git/update.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libimagstorestdhook/src/vcs/git/update.rs b/libimagstorestdhook/src/vcs/git/update.rs index 86cdb6d3..df1fba18 100644 --- a/libimagstorestdhook/src/vcs/git/update.rs +++ b/libimagstorestdhook/src/vcs/git/update.rs @@ -48,7 +48,9 @@ impl Hook for UpdateHook { } fn set_config(&mut self, config: &Value) { - self.config = Some(config.clone()); + if let Err(e) = self.runtime.set_config(config) { + trace_error(&e); + } } }