created on | August 29, 2025 |
starting gitea with another user than defined in gitea.conf results in:
... routers/init.go:74:mustInitCtx() [F] code.gitea.io/gitea/modules/git.InitFull(ctx) failed: failed to set git global config diff.algorithm, err: exit status 255 - warning: unable to access '/home/rudolf/.config/git/gitconfig': Permission denied error: could not lock config file /home/rudolf/.config/git/gitconfig: Permission denied - warning: unable to access '/home/rudolf/.config/git/gitconfig': Permission denied error: could not lock config file /home/rudolf/.config/git/gitconfig: Permission denied the fix is to run unset GIT_CONFIG_GLOBAL before running gitea.
...