How about “…when there's a `.gitmodules` file in the root of the repository”?