尝试过降低gitea版本,并不能解决问题.
版本如下:
gitea-1.25.4-gogit-windows-4.0-amd64
git version 2.52.0.windows.1
日志如下:
2026/02/05 14:18:18 HTTPRequest [I] router: polling GET /user/events for 192.168.1.200:65500, elapsed 3978.7ms @ events/events.go:18(events.Events)
2026/02/05 14:37:42 HTTPRequest [I] router: completed GET /Admin/Dycode.git/info/refs?service=git-receive-pack for 192.168.1.200:57661, 401 Unauthorized in 1.0ms @ repo/githttp.go:503(repo.GetInfoRefs)
2026/02/05 14:37:42 routers/web/web.go:121:Routes.webAuth.10() [E] Failed to verify user: user does not exist [uid: 0, name: OAUTH_USER]
2026/02/05 14:37:42 HTTPRequest [I] router: completed GET /Admin/Dycode.git/info/refs?service=git-receive-pack for 192.168.1.200:57661, 401 Unauthorized in 2.1ms @ web/web.go:118(web.Routes.webAuth)
2026/02/05 14:37:42 routers/web/web.go:121:Routes.webAuth.10() [E] Failed to verify user: user does not exist [uid: 0, name: OAUTH_USER]
2026/02/05 14:37:42 HTTPRequest [I] router: completed GET /Admin/Dycode.git/info/refs?service=git-receive-pack for 192.168.1.200:57661, 401 Unauthorized in 2.1ms @ web/web.go:118(web.Routes.webAuth)
2026/02/05 14:38:59 HTTPRequest [I] router: completed GET /Admin/Dycode.git/info/refs?service=git-receive-pack for 192.168.1.200:65392, 401 Unauthorized in 1.2ms @ repo/githttp.go:503(repo.GetInfoRefs)
2026/02/05 14:39:00 HTTPRequest [I] router: completed POST /login/oauth/access_token for 192.168.1.200:65393, 200 OK in 10.6ms @ auth/oauth2_provider.go:461(auth.AccessTokenOAuth)
2026/02/05 14:39:00 HTTPRequest [I] router: completed GET /Admin/Dycode.git/info/refs?service=git-receive-pack for 192.168.1.200:65392, 200 OK in 64.5ms @ repo/githttp.go:503(repo.GetInfoRefs)
