# Git submodule fails on init

**URL:** <https://forums.docker.com/t/git-submodule-fails-on-init/78196>\
**Category:** Docker Hub\
**Tags:** build, ci\_cd\
**Created:** [July 17, 2019, 2:33pm UTC](https://forums.docker.com/t/git-submodule-fails-on-init/78196 "2019-07-17T14:33:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![gkorland](https://avatars.discourse-cdn.com/v4/letter/g/ba9def/32.png) [@gkorland](https://forums.docker.com/u/gkorland)\
**Post date:** [July 17, 2019, 2:33pm UTC](https://forums.docker.com/t/git-submodule-fails-on-init/78196/1 "2019-07-17T14:33:25Z")

</div>

We are getting the following error, which happens only when trying to build on dockerhub.

```auto
fatal: not a git repository: /src/xxx/.git/modules/cpython
git submodule update --init --recursive
fatal: not a git repository: /src/xxx/.git/modules/cpython

```
