Fixed git_remote_write_fetchhead() to handle tag refspecs