summaryrefslogtreecommitdiffstats
path: root/modules/git/commit_test.go
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2024-03-21 22:30:55 +0800
committerGitHub <noreply@github.com>2024-03-21 14:30:55 +0000
commitc03b1e28544ee60c72f9dc7d9f362753bb3d778c (patch)
tree38ee9f770a3608b1d486aab626b7f4e0ec8f5162 /modules/git/commit_test.go
parent3ff3c5ba780bc1b01004b9d0f8b4d56dd1aa9820 (diff)
downloadgitea-c03b1e28544ee60c72f9dc7d9f362753bb3d778c.tar.gz
gitea-c03b1e28544ee60c72f9dc7d9f362753bb3d778c.zip
Fix the bug that user may logout if GetUserByID return unknow error (#29964)
backport #29962 This PR fixed a bug when the user switching pages too fast, he will logout automatically. The reason is that when the error is context cancelled, the previous code think user hasn't login then the session will be deleted. Now it will return the errors but not think it's not login. Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Diffstat (limited to 'modules/git/commit_test.go')
0 files changed, 0 insertions, 0 deletions