tags:

views:

576

answers:

1

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.

What I'm missing?

A: 

UPDATE:
In your gitosis-admin repo, try adding loglevel = DEBUG under [gitosis] in your gitosis.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?

Tim Henigan
Yes, and it's updating the config in the gitosis server, I've also made sure the post-update hook was executable...
Cesar
What I don't know is if gitosis should make the new repo when it's configuration is updated, I mean, I update the config and push, I see the config is updated on the server BUT i don't see the new bare repo created, but i don't know if this is the way is supposed to work?
Cesar
@Cesar: Simply updating the configuration in `gitosis.conf` does not create the repository on the server. To do that, you must create the repo locally and then push it to the server using `git push origin master:refs/heads/master`.
Tim Henigan