aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/hook.go
diff options
context:
space:
mode:
authortechknowlogick <techknowlogick@gitea.com>2024-09-09 22:23:07 -0400
committerGitHub <noreply@github.com>2024-09-10 02:23:07 +0000
commitd9a7748cdc3f13392acbde87edd18602b566c216 (patch)
tree0f7191740e0335ccf61f12bb94d40ea36b7b0ed7 /cmd/hook.go
parent1620e3f03bad1feb22c8e9c3c9baf4da04aaefe5 (diff)
downloadgitea-d9a7748cdc3f13392acbde87edd18602b566c216.tar.gz
gitea-d9a7748cdc3f13392acbde87edd18602b566c216.zip
bump to go 1.23 (#31855)
Diffstat (limited to 'cmd/hook.go')
-rw-r--r--cmd/hook.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/hook.go b/cmd/hook.go
index e8a8b1f4ad..11d0d072c9 100644
--- a/cmd/hook.go
+++ b/cmd/hook.go
@@ -542,14 +542,14 @@ Gitea or set your environment appropriately.`, "")
index := bytes.IndexByte(rs.Data, byte(0))
if index >= len(rs.Data) {
- return fail(ctx, "Protocol: format error", "pkt-line: format error "+fmt.Sprint(rs.Data))
+ return fail(ctx, "Protocol: format error", "pkt-line: format error %s", rs.Data)
}
if index < 0 {
if len(rs.Data) == 10 && rs.Data[9] == '\n' {
index = 9
} else {
- return fail(ctx, "Protocol: format error", "pkt-line: format error "+fmt.Sprint(rs.Data))
+ return fail(ctx, "Protocol: format error", "pkt-line: format error %s", rs.Data)
}
}