remove unneccessary code from git_with_submodules