git for web

To save you google search clicks. I have a hint for those that tried to use dumb apache as a backend for git repository. The issue is warning that HEAD does not point to valid info/ref file. This can be read from apache log. This is a listing file as mentioned on web that has to be updated to let git download content from server that does not speak git protocol.

Good to know, isn't it?

The key is to run following command regularly on the hub apache server:
git-update-server-info

The pull or clone works correctly. One bonus hint, when your server does not have valid certificate chain or has a private CA that was not yet included into your ca-chain in /etc yet. Then use GIT_SSL_NO_VERIFY=1 as prefix of any command or set it as exported into environment.

Comments

Popular Posts