1

Gitosis config:

[gitosis]
loglevel = DEBUG

[group gitosis-admin]
writable = gitosis-admin
members = root.server

[group testgroup]
writable = testproj1
members = Anastasia@ANASTASIA-PC

My log, when I call clone command:

myuser@mydomain /d/www
$ git clone git@5.9.30.109:repositories/testproj1
Cloning into 'testproj1'...
DEBUG:gitosis.serve.main:Got command "git-upload-pack 'repositories/testproj1'"
DEBUG:gitosis.access.haveAccess:Access check for 'myuser@mydomain' as 'wr
itable' on 'repositories/testproj1'...
DEBUG:gitosis.group.getMembership:found 'myuser@mydomain' in 'testgroup'
DEBUG:gitosis.access.haveAccess:Access check for 'myuser@mydomain' as 'wr
iteable' on 'repositories/testproj1'...
DEBUG:gitosis.group.getMembership:found 'myuser@mydomain' in 'testgroup'
DEBUG:gitosis.access.haveAccess:Access check for 'myuser@mydomain' as 're
adonly' on 'repositories/testproj1'...
DEBUG:gitosis.group.getMembership:found 'myuser@mydomain' in 'testgroup'
ERROR:gitosis.serve.main:Repository read access denied
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

Whyyyy? :(

How can I issue this.

I already changed the rights for post-update.

dudareviv
  • 11
  • 1
  • 2
  • Why gitosis through? it has been obsolete for *years* now. The new one is called gitolite: http://stackoverflow.com/a/10888358/6309 – VonC Apr 13 '14 at 13:22

1 Answers1

0

This error is usuallly seen when the ssh key for myuser hasn't be properly added to the keydir folder of the gitosis-admin repo:

  • incorrect format
  • multiple lines instead of one
  • or the public key added in the keydir folder isn't properly named 'myuser.pub' (as in this answer)

The other can be linked to a gitosis.conf format issue (as in this comment)

Either way, gitolite is easier to maintain and more up-to-date than gitosis (see "How do programs like gitolite work?").

Community
  • 1
  • 1
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250