gitweb: Separate ref parsing in git_get_refs_list into parse_ref