Skip to content

Commit 452afc2

Browse files
committed
fix: move link to code
1 parent ac3f6d0 commit 452afc2

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

options/locale/locale_en-US.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2591,7 +2591,7 @@ find_file.no_matching = No matching file found
25912591
error.csv.too_large = Can't render this file because it is too large.
25922592
error.csv.unexpected = Can't render this file because it contains an unexpected character in line %d and column %d.
25932593
error.csv.invalid_field_count = Can't render this file because it has a wrong number of fields in line %d.
2594-
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.
2594+
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.
25952595
25962596
[graphs]
25972597
component_loading = Loading %s...

routers/web/repo/view.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1095,7 +1095,10 @@ func checkOutdatedBranch(ctx *context.Context) {
10951095
}
10961096

10971097
if dbBranch.CommitID != commit.ID.String() {
1098-
ctx.Flash.Warning(ctx.Tr("repo.error.broken_git_hook"), true)
1098+
ctx.Flash.Warning(ctx.Tr(
1099+
"repo.error.broken_git_hook",
1100+
"https://docs.gitea.com/help/faq#push-hook--webhook--actions-arent-running",
1101+
), true)
10991102
}
11001103
}
11011104

0 commit comments

Comments
 (0)