InstallHooks installs git hooks that help developers follow our best practices.
()
| 49 | |
| 50 | // InstallHooks installs git hooks that help developers follow our best practices. |
| 51 | func (g Git) InstallHooks() error { |
| 52 | for _, hook := range gitHooks { |
| 53 | if err := g.installHook(hook); err != nil { |
| 54 | return err |
| 55 | } |
| 56 | } |
| 57 | return nil |
| 58 | } |
| 59 | |
| 60 | func init() { |
| 61 | initDeps = append(initDeps, Git.InstallHooks) |
nothing calls this directly
no test coverage detected