DeleteHook: Ensure the right branch is checked out

This commit is contained in:
Matthias Beyer 2016-09-18 18:31:10 +02:00
parent 81cc6c822b
commit 0f1c360981

View file

@ -107,6 +107,7 @@ impl StoreIdAccessor for DeleteHook {
}
}
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));