fixed repo.FindName to use actual hostname, now that host db field exists
This commit is contained in:
parent
4abc7bf81e
commit
c7d63ec7ce
1 changed files with 1 additions and 1 deletions
|
@ -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{}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue