Sunday 7 February 2010

Small issue with Gitorious

I created a simple project to so that I can easily work on it from several locations. Of course I had issues, from one location I had problems getting through the firewall but I also had a minor issue from home.

Gitorious tells that I can clone the repository with
git clone

which worked but when I tried to push I got this error:

fatal: protocol error: expected sha/ref, got '
The git:// protocol is read-only.

Please use the push url as listed on the repository page.

Reason is that the url for the repository is incorrect in .git/config. It looked like
url = git://

when in fact it should look like
url =

After I fixed that, it works. I can't figure out why this can't be correct in the first place without the need to fix it by hand.