[GH-ISSUE #140] gitea 1.6.3 and 1.7 throws no error if the repositories dir doesn't have write permissions #10

Open
opened 2026-02-16 10:23:46 -05:00 by yindo · 1 comment
Owner

Originally created by @vampirefrog on GitHub (Jan 11, 2019).
Original GitHub issue: https://github.com/go-gitea/git/issues/140

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.

Originally created by @vampirefrog on GitHub (Jan 11, 2019). Original GitHub issue: https://github.com/go-gitea/git/issues/140 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.
Author
Owner

@lunny commented on GitHub (Jan 12, 2019):

Is this related with go-gitea/git ?

@lunny commented on GitHub (Jan 12, 2019): Is this related with go-gitea/git ?
yindo changed title from gitea 1.6.3 and 1.7 throws no error if the repositories dir doesn't have write permissions to [GH-ISSUE #140] gitea 1.6.3 and 1.7 throws no error if the repositories dir doesn't have write permissions 2026-06-05 16:30:43 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: go-gitea/git#10