'Retrieve the current refs from a git smart server.'

def get_refs(self, path):

    (proto, _) = self._connect('upload-pack', path)
    with proto:
        (refs, _) = read_pkt_refs(proto)
        proto.write_pkt_line(None)
        return refs
