Work with both submodules and non-connected repos