Skip to content

Commit

Permalink
Change const variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
thibaultmeyer committed Nov 12, 2016
1 parent b3009dc commit a6a203b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hook.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit a6a203b

Please sign in to comment.