Fix issue #9193, don't connect repo in repo controller