fixed repo.FindName to use actual hostname, now that host db field exists

This commit is contained in:
Brad 2014-06-09 14:36:27 -07:00
parent 4abc7bf81e
commit c7d63ec7ce

View file

@ -48,7 +48,7 @@ func (h *HookHandler) PostHook(w http.ResponseWriter, r *http.Request) error {
}
// fetch the repository from the database
repo, err := h.repos.FindName(remote.GetName(), hook.Owner, hook.Repo)
repo, err := h.repos.FindName(host, hook.Owner, hook.Repo)
if err != nil {
return notFound{}
}