Skip to content

Commit

Permalink
Merge pull request #8 from 0xbaadf00d/feature/const-var-name
Browse files Browse the repository at this point in the history
Change const variable name
  • Loading branch information
andreynering authored Nov 12, 2016
2 parents f2ef59b + a6a203b commit e9c0f82
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 e9c0f82

Please sign in to comment.