Skip to content

Commit

Permalink
fix: move link to code
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfogre committed Mar 1, 2024
1 parent ac3f6d0 commit 452afc2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion options/locale/locale_en-US.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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 <a target="_blank" rel="noreferrer" href="https://docs.gitea.com/help/faq#push-hook--webhook--actions-arent-running">documentation</a> 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 <a target="_blank" rel="noreferrer" href="%s">documentation</a> to fix them, then push some commits to refresh the status.
[graphs]
component_loading = Loading %s...
Expand Down
5 changes: 4 additions & 1 deletion routers/web/repo/view.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}

Expand Down

0 comments on commit 452afc2

Please sign in to comment.