## The problem
Issue PrefectHQ/prefect#14731 (closed, 21 comments): ### Bug summary We are currently working with Prefect and encountered a bug related to the GitRepository class, specifically regarding the inclusion of submodules during the repository pull process. Our GitHub repository is structured in a way that it has one submodule (a repository embedded in the main repository). However, when we create a deployment on Prefect Cloud, it is unable to pull the submodule. We tried using the syntax highlighted in the code snippet below, but it doesn't work as expected and we are seeing 'ModuleNotFoundError' on Prefect. ```python from prefect.runner.

## What fixed it
[cicdw (maintainer)]: GitRepository submodule pulls were fixed in prefect 3.0.0rc15 and backported to 2.20.1. If a deployment fails pulling submodules (git pull --recurse-submodules exits non-zero), upgrade the prefect package to 2.20.1 or newer, and handle the 3.x upgrade separately.