Hello,
I've set up a directory to serve git repos under /var/www/git using:
- apache2
- git 1.7.1
The apache config file is literally pasted from the http-smart-backend documentation, modified for my installation. I clone successfully over https using the smart backend. I know this because when you use the smart backend you get this type of message:
git clone https://git.pelagicore.net/var/www/git/administrivia.git
Initialized empty Git repository in /home/jeremiah/administrivia/.git/
remote: Counting objects: 69, done.
remote: Compressing objects: 100% (47/47), done.
remote: Total 69 (delta 15), reused 0 (delta 0)
Unpacking objects: 100% (69/69), done.
As opposed to a more terse message when using a 'dumb' http transport.
I cannot push however. This is what git says:
$ ~/administrivia > git push origin master
error: Cannot access URL https://git.pelagicore.net/var/www/git/administrivia.git/, return code 22
fatal: git-http-push failed
And this is what the logs say:
[Tue Jun 01 14:25:54 2010] [error] [client 109.74.195.212] Request not supported: '/var/www/git/administrivia.git/'
How is that I can clone with the smart transport, and not push?
Thanks,
Jeremiah