mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-11-26 20:01:02 +00:00
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
|
// 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 {
|
if err != nil {
|
||||||
return notFound{}
|
return notFound{}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue