mirror of
https://github.com/go-gitea/gitea.git
synced 2025-12-20 06:13:19 +01:00
Add additional logic with tests to restore the previous behaviour when writing the principals file. Fixes: #36212 --------- Signed-off-by: Peter Verraedt <peter.verraedt@kuleuven.be> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>