After restore, users without repositories cannot fork
(This is a duplicate of #191 (closed))
When restoring a backup, users that did not have any repositories before the restore get an error when forking.
GitLab Version: 7.3.2
To re-create:
- Create a new user 'user1'
- Create a backup
- Restore the backup
- Login as 'user1' and try to fork a repo. You will get
fork transaction failed
The issue appears to be that "fork" requires the user to have a folder in /var/opt/gitlab/git-data/repositories/
, but restore does not create it if the user has no repos.
If you run mkdir -m 770 user1
, the fork succeeds.
I figure that fork should make the folder if it doesn't already exist... or the restore process would need to make folders for every user -- repos or not.
Thanks, by the way. Our team loves GitLab!