I set up gitosis but even when i can clone, pull and push to the gitosis-admin repo, i can't create new ones.
According to every doc i read, to create a new repo one has to:
- Give user write access to the repo (inside a group put: writable = repo-name)
- The user create a repo locally add a remote then does a push
- The repo is created in the server
But i always get the error fatal: 'repo-name.git' does not appear to be a git repository
But if a login on the server (as user git) and create the repo manually using mkdir repo-name.git && cd repo-name.git && git --bare init
, then i can push from my local repo to the remote one.
UPDATE:
In your gitosis-admin repo, try adding
loglevel = DEBUG
under[gitosis]
in yourgitosis.conf
. Push this change to your server and then try again. This will generate a lot of useful information to help debug the problem.These instructions from Dreamhost are the best I found.
Are you pushing the
gitosis-admin
repo after updating permissions?