Fix gitp when .git is a submodule file.