mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2026-02-14 12:32:14 +02:00
- If the session doesn't exist, it shouldn't be expected that the variable is non-nil. Define the session variable instead and insert that. - Add unit tests to test the behavior of the database sessions code . - Regression caused bydd30d9d5c0. - Resolves https://codeberg.org/forgejo/forgejo/issues/2042 (cherry picked from commit90307ad200) (cherry picked from commit874ef1978d) (cherry picked from commit27d5f035fc) (cherry picked from commit65dbc4303b) [GITEA] Fix session generation for database (squash) timeutil.Mock because ofe743570f65* Refactor timeutil package (#28623) (cherry picked from commitacc6b51be2) (cherry picked from commit02b74317f2) (cherry picked from commit63b9b624bd) (cherry picked from commit7752ff8baa) (cherry picked from commitc0af4d9438)