Wee issue trying to install git using MacPorts

The other day I wanted to install the hot new SCM git – and an easy way to do this is using MacPorts.

So I opened up the terminal and banged out:
sudo port install git-core
It chugged away installing nicely until it tried to install rsync as a dependency:

--->  Attempting to fetch rsync-2.6.9.tar.gz from
Error: Target org.macports.fetch returned: fetch failed
Error: Status 1 encountered during processing.
I fixed this by running the selfupdate command for MacPorts
sudo port selfupdate

After that the git installation worked fine.