Servname not supported for ai_socktype

I was getting

ERROR: git clone -n git://github.com:mochi/mochiweb.git mochiweb failed with error: 128 and output:
fatal: unable to connect to github.com:
github.com: Servname not supported for ai_socktype

when I tried to "Make deps", changing git://github.com:mochi/mochiweb.git to git://github.com/mochi/mochiweb.git fix this issue.