Fix initialization of a bare repository