Revert "Abort the execution of the UpdateHook if repo isnt dirty"

This reverts commit b2a0758b1a.
This commit is contained in:
Matthias Beyer 2016-09-20 10:27:39 +02:00
parent e1177717ee
commit 128ed27bb8

View file

@ -126,13 +126,6 @@ impl StoreIdAccessor for UpdateHook {
let repo = try!(self.runtime.repository(&action));
let mut index = try!(fetch_index(repo, &action));
if !self.runtime.repo_is_dirty(&index) {
debug!("[GIT UPDATE HOOK]: Repository seems to be clean. I'm done.");
return Ok(())
} else {
debug!("[GIT UPDATE HOOK]: Repository seems to be dirty. Continuing.");
}
let signature = try!(
repo.signature()
.map_err_into(GHEK::MkSignature)