It seems that this error is caused by the git version which is in the standard apt repositiories from Ubuntu 12.4 LTS. After installing a newer version from another repo it works
sudo add-apt-repository ppa:git-core/ppa
sudo apt-get update
sudo apt-get upgrade