canonicalize repo