Git update-server-info does nothing

Purpose: placing the git repository on the web server without git and git deamon (using the HTTP protocol as a transfer protocol and dump as the git protocol - nothing scripts, nothing shell, only GET support).

I used the tutorial from http://git-scm.com/book/en/Git-Internals-Transfer-Protocols

Steps:

  • Create a new git repository.
  • Clone as -bare for grepo.git
  • calling "git update-server-info" in grepo.git (nothing changes!)
  • mv hooks / post-commit.sample hooks / post-commit && & &&& & & chmod a + x hooks / post-commit
  • call "git clone http://example.com/grepo.git

On the client side received: fatal: http://example.com/grepo.git/info/refs?service= git-upload-pack not found: did you run git update-server-info on the server?

On the server side, in the request log: [20 / June / 2013: 11: 45: 16 +0200] "GET / grepo.git / info / refs? Service = git-upload-pack HTTP / 1.1" 404 1385

Why git call any script on the server? My git version is 1.8.1.5.

0
git repository dump
source share
1 answer

You can check permissions of repo.git / info / refs to see if this is readable using the web server process.

+1
source share

All Articles