Fixing the order the repo is added and updated