Handle repo migration