Fix issue #9626, let go for uninitialized repo under readonly mode