Upgrade vendor "git" (#161)

This commit is contained in:
Thibault Meyer 2016-11-12 12:09:25 +01:00 committed by GitHub
parent b339858500
commit 54e6ed3431
5 changed files with 17 additions and 10 deletions

4
vendor/code.gitea.io/git/hook.go generated vendored
View file

@ -102,13 +102,13 @@ func ListHooks(repoPath string) (_ []*Hook, err error) {
}
const (
HookPathUpdate = "hooks/update"
HOOK_PATH_UPDATE = "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, HookPathUpdate)
hookPath := path.Join(repoPath, HOOK_PATH_UPDATE)
if com.IsExist(hookPath) {
err = os.Remove(hookPath)
} else {