Skip to content

Commit 6be6079

Browse files
committed
Change order
1 parent d832561 commit 6be6079

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/js/repo.js

+2-4
Original file line numberDiff line numberDiff line change
@@ -415,14 +415,12 @@ class Repository {
415415

416416
// Adds or removes hooks from repository
417417
changeHooks(hooks) {
418-
return this.getContent()
418+
return this.git.changeHooks(hooks)
419+
.then(() => this.getContent())
419420
.then(content => {
420421
content.hooks = hooks;
421422
return this.setContent(content);
422423
})
423-
.then(() => {
424-
return this.git.changeHooks(hooks);
425-
})
426424
.then(() => this.sign());
427425
}
428426

0 commit comments

Comments
 (0)