git
git copied to clipboard
gitea 1.6.3 and 1.7 throws no error if the repositories dir doesn't have write permissions
Hello, I have struggled to get gitea working, I had stopped when pushing, right after the Total 489 (delta 214), reused 0 (delta 0) line, it was stalling. I tried looking in the logs but there was no error or anything, so it took me a few hours to figure it out, but the repositories directory wasn't owned by the same user as the gitea executable was running as.
Please add some sort of warning for users who might struggle with this.
I guess to reproduce, you'd chown root:root the repositories directory and try to do a push. For me, it was also a new repository, and I was pushing an existing repository with existing commits. I don't know if that makes a difference or not.
Thanks, cheers.
Is this related with go-gitea/git ?