From a4cdb2b8731c1eea031af397aecd3fe657d6c889 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Sun, 18 Sep 2016 18:31:23 +0200 Subject: [PATCH] UpdateHook: Ensure the right branch is checked out --- libimagstorestdhook/src/vcs/git/update.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/libimagstorestdhook/src/vcs/git/update.rs b/libimagstorestdhook/src/vcs/git/update.rs index 8b0186ec..25ada8a6 100644 --- a/libimagstorestdhook/src/vcs/git/update.rs +++ b/libimagstorestdhook/src/vcs/git/update.rs @@ -121,6 +121,7 @@ impl StoreIdAccessor for UpdateHook { } } + let _ = try!(self.runtime.ensure_cfg_branch_is_checked_out(&action)); let cfg = try!(self.runtime.config_value_or_err(&action)); let repo = try!(self.runtime.repository(&action)); let mut index = try!(fetch_index(repo, &action));