I made my own git repo on my server using git init --bare. I added some files there and then cloned my repo from myserver by git clone http://www.example.
git init --bare
git clone http://www.example.
Try to add this to your config file in the bare repository:
[http] receivepack = true