make ensure_bare_repo public, don't create on the fly
Revert "make ensure_bare_repo public, don't create on the fly"

This reverts commit 4b0c75f7709135bd0a3437a218d0a202935d70b0.