remote-hg: ensure shared repo is initialized