Isn't there a (small) risk that `repos` is undefined at this point?