UpdateHook: Ensure the right branch is checked out

This commit is contained in:
Matthias Beyer 2016-09-18 18:31:23 +02:00
parent 0f1c360981
commit a4cdb2b873
1 changed files with 1 additions and 0 deletions

View File

@ -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));