We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2b1b8f8 commit 8c251f6Copy full SHA for 8c251f6
hook/hook.go
@@ -12,7 +12,8 @@ import (
12
// commitMsgHook represent commit-msg hook file name
13
const commitMsgHook = "commit-msg"
14
15
-func WriteHooks(outDir string, confPath string) (retErr error) {
+// WriteHooks write git hooks to the given outDir
16
+func WriteHooks(outDir, confPath string) (retErr error) {
17
hookFilePath := filepath.Join(outDir, commitMsgHook)
18
// commit-msg needs to be executable
19
file, err := os.OpenFile(hookFilePath, os.O_RDWR|os.O_CREATE|os.O_TRUNC, 0700)
0 commit comments