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 b3009dc commit a6a203bCopy full SHA for a6a203b
hook.go
@@ -102,13 +102,13 @@ func ListHooks(repoPath string) (_ []*Hook, err error) {
102
}
103
104
const (
105
- HOOK_PATH_UPDATE = "hooks/update"
+ HookPathUpdate = "hooks/update"
106
)
107
108
// SetUpdateHook writes given content to update hook of the reposiotry.
109
func SetUpdateHook(repoPath, content string) (err error) {
110
log("Setting update hook: %s", repoPath)
111
- hookPath := path.Join(repoPath, HOOK_PATH_UPDATE)
+ hookPath := path.Join(repoPath, HookPathUpdate)
112
if com.IsExist(hookPath) {
113
err = os.Remove(hookPath)
114
} else {
0 commit comments