More MixedCase consts

This commit is contained in:
Sandro Santilli 2016-11-07 17:08:21 +01:00
parent 80eea77953
commit 0b62aeb495
4 changed files with 9 additions and 9 deletions

View file

@ -102,13 +102,13 @@ func ListHooks(repoPath string) (_ []*Hook, err error) {
}
const (
HOOK_PATH_UPDATE = "hooks/update"
HookPathUpdate = "hooks/update"
)
// SetUpdateHook writes given content to update hook of the reposiotry.
func SetUpdateHook(repoPath, content string) (err error) {
log("Setting update hook: %s", repoPath)
hookPath := path.Join(repoPath, HOOK_PATH_UPDATE)
hookPath := path.Join(repoPath, HookPathUpdate)
if com.IsExist(hookPath) {
err = os.Remove(hookPath)
} else {