Fix the problem of not saving the repo to the settings file