How do you configure cgit with pull and push over http?

I am trying to configure a cgit instance from which you can click or pull http. However, I can view my repos through http through cgit, but when I try to click on this repo, I get an error:

Fatal, / info / refs is invalid, is this a git repository?

This path exists on the server, and it is an empty file. I created a hook after the update, which automatically performs git update-server-info (post-update.example from the repo). But when I try to view the / info / refs file via http, cgit has an announcement that it is an empty repository.

What can I do to access this file via http so that I can click or pull with the URLs that cgit provides me with?

I have my repositories on a shared hosting provider, so I do not have access to apache.conf, but only to .htaccess files ...

+3
source share
2 answers

As far as I can tell, cgit does not allow you to go to Git repositories (by looking at the list).

You may need to configure something like git-http-backendthat so that you can click. The man page git-http-backendcontains sample configurations for Apache 2.x for anonymous reading with authenticated write and for authenticated read and write.

+1
source

If you want the backend to be more functional than git-http-backendI would recommend gitolite . It has some really nice features:

  • unix ( "" )
  • -:
    • "" .
  • git:
    • ///, , , /
  • root, , git perl
  • sshd, http, ( root)
  • admin git

. , .

0

All Articles