Skip to content

Commit

Permalink
Fixed error when plugging default git hook
Browse files Browse the repository at this point in the history
  • Loading branch information
vorban committed Jul 27, 2021
1 parent 6e57e86 commit 702347c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -398,9 +398,9 @@ func plugProjectHook(script []byte) {
}

func plugDefaultHook() {
fmt.Printf("./ops/git/hooks/pre-commit not found, fallback to default hook")
fmt.Printf("./ops/git/hooks/pre-commit not found, fallback to default hook\n")

script, err := resources.ReadFile("git-hooks/pre-commit")
script, err := resources.ReadFile("resources/git-hooks/pre-commit")

if err != nil {
fmt.Printf("%s %v\n", color.RedString("Unable to read default hook:"), err)
Expand Down

0 comments on commit 702347c

Please sign in to comment.