fetch2/git: support full ref paths

Lets me use "HEAD" for to refer to local repos while developing them.