diff --git a/options/locale/locale_en-US.ini b/options/locale/locale_en-US.ini index 523d27d061ff9..bb3691e41742e 100644 --- a/options/locale/locale_en-US.ini +++ b/options/locale/locale_en-US.ini @@ -2591,7 +2591,7 @@ find_file.no_matching = No matching file found error.csv.too_large = Can't render this file because it is too large. error.csv.unexpected = Can't render this file because it contains an unexpected character in line %d and column %d. error.csv.invalid_field_count = Can't render this file because it has a wrong number of fields in line %d. -error.broken_git_hook = Git hooks of this repository seem to be broken. Please follow the documentation to fix them, then push some commits to refresh the status. +error.broken_git_hook = Git hooks of this repository seem to be broken. Please follow the documentation to fix them, then push some commits to refresh the status. [graphs] component_loading = Loading %s... diff --git a/routers/web/repo/view.go b/routers/web/repo/view.go index 05405ccbbbdd9..bbc8fedd359a2 100644 --- a/routers/web/repo/view.go +++ b/routers/web/repo/view.go @@ -1095,7 +1095,10 @@ func checkOutdatedBranch(ctx *context.Context) { } if dbBranch.CommitID != commit.ID.String() { - ctx.Flash.Warning(ctx.Tr("repo.error.broken_git_hook"), true) + ctx.Flash.Warning(ctx.Tr( + "repo.error.broken_git_hook", + "https://docs.gitea.com/help/faq#push-hook--webhook--actions-arent-running", + ), true) } }