Commit 6be60793 authored by Ivanq's avatar Ivanq

Change order

parent d832561d
......@@ -415,14 +415,12 @@ class Repository {
// Adds or removes hooks from repository
changeHooks(hooks) {
return this.getContent()
return this.git.changeHooks(hooks)
.then(() => this.getContent())
.then(content => {
content.hooks = hooks;
return this.setContent(content);
})
.then(() => {
return this.git.changeHooks(hooks);
})
.then(() => this.sign());
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment