0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-11-25 10:52:47 +01:00
gitea/routers
zeripath d7f12af805
Prevent NPE if trying to restore an already restored deleted branch (#21940)
If a deleted-branch has already been restored, a request to restore it
again will cause a NPE. This PR adds detection for this case, but also
disables buttons when they're clicked in order to help prevent
accidental repeat requests.

Fix #21930

Signed-off-by: Andrew Thornton <art27@cantab.net>
2022-11-25 20:58:20 +00:00
..
api Workaround for container registry push/pull errors (#21862) 2022-11-25 13:47:46 +08:00
common Add support for HEAD requests in Maven registry (#21834) 2022-11-24 16:25:13 +02:00
install Fix token generation when using INTERNAL_TOKEN_URI (#21669) 2022-11-03 20:55:09 +00:00
private Add context.Context to more methods (#21546) 2022-11-19 16:12:33 +08:00
utils refactor webhook *NewPost (#20729) 2022-08-11 17:48:23 +02:00
web Prevent NPE if trying to restore an already restored deleted branch (#21940) 2022-11-25 20:58:20 +00:00
init.go Add some documentation to packages (#21648) 2022-11-12 18:59:15 +00:00