This is what I have done so far and I will say this procedure worked on Ubuntu 9.10 which perhaps had a different version of git.
server: mkdir ~/git local:
Try below command:
git config receive.denyCurrentBranch warn