Correctly decide if to re-import a repository