Package: gitosis
Version: 0.2+20080825-15

Preconditions
- gitweb is properly configured to display repositories managed by gitosis
- I have defined repository "foo" in gitosis-admin/gitosis.conf by adding
  a "[repo foo]" section with "gitweb = yes" and "daemon = yes" entries;
  the repo is also marked writable in one group
- I have pushed the changes in gitosis.conf to the server
- The repository foo does not exist on the server side, i.e. there is no
  directory /srv/gitosis/repositories/foo
- I have a bare git repository on the local side
- Inside the bare repo's directory I have run
  "git remote add origin gito...@myserver:foo.git"

Action
- Inside the bare repo's directory I run "git push --all"

Result
- The repository is created on the server side, i.e. there is now a
  directory /srv/gitosis/repositories/foo
- The top-level directory /srv/gitosis/repositories/foo has permissions
  750 and owner/group = gitosis/gitosis

Problem
- gitweb does not display the repository
- Reason: The web server runs with user/group = www-data/www-data, but this
  user/group combination does not have permission to enter the repository's
  top-level directory
- I have not yet tested the setup with the git-daemon-run package, but I
  imagine that git-daemon-run will have the same problem as gitweb since
  it runs with user/group = git-daemon:nogroup

Solution
- gitosis should create repositories with permissions 755
- What would also work is to add user www-data to the group gitosis, but I
  would vastly prefer the above
- To be a bit paranoid, it might be ok for gitosis to change permissions
  to 755 only after "gitweb = yes" or "daemon = yes" has been set; if both
  are set to "no", permissions could be reverted to 750


Thanks
Patrick





-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to