rebuild repo url with specified branch