Merge pull request #8 from 0xbaadf00d/feature/const-var-name

Change const variable name
This commit is contained in:
Andrey Nering
2016-11-12 19:58:51 -02:00
committed by GitHub
+2 -2
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 {