# Git submodule update --init —recursive not working after update

**URL:** <https://travis-ci.community/t/git-submodule-update-init-recursive-not-working-after-update/8823>\
**Category:** Environments\
**Created:** [May 31, 2020, 3:54pm UTC](https://travis-ci.community/t/git-submodule-update-init-recursive-not-working-after-update/8823 "2020-05-31T15:54:04Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ronnie-webb](https://avatars.discourse-cdn.com/v4/letter/r/4af34b/32.png) [@ronnie-webb](https://travis-ci.community/u/ronnie-webb)\
**Post date:** [May 31, 2020, 3:54pm UTC](https://travis-ci.community/t/git-submodule-update-init-recursive-not-working-after-update/8823/1 "2020-05-31T15:54:04Z")

</div>

After release of import and clone functionality…We’re not able to clone submodules with “git submodule update --init —recursive”. We have the clone import button flipped to on, but still not allowing us to retrieve submodules. Did something change with the way we have to call submodules.

---

<div class="post-metadata">

**Author:** ![Montana](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/montana/32/9566_2.png) [@Montana](https://travis-ci.community/u/Montana)\
**Post date:** [June 2, 2020, 5:43am UTC](https://travis-ci.community/t/git-submodule-update-init-recursive-not-working-after-update/8823/2 "2020-06-02T05:43:49Z")

</div>

Hey @ronnie-webb,

Have you tried adding this in your `before_install` section (there’s no `.yml` file provided) but this could be a possible workaround:

```bash
before_install:
    - sed -i 's/git@github.com:/https:\/\/github.com\//' .gitmodules
    - git submodule update --init --recursive

```

This could work, let me know. If you need anymore help I will be here!

---

<div class="post-metadata">

**Author:** ![ronnie-webb](https://avatars.discourse-cdn.com/v4/letter/r/4af34b/32.png) [@ronnie-webb](https://travis-ci.community/u/ronnie-webb)\
**Post date:** [June 2, 2020, 5:57am UTC](https://travis-ci.community/t/git-submodule-update-init-recursive-not-working-after-update/8823/3 "2020-06-02T05:57:08Z")

</div>

No I have not but I debugged the build and tried to ssh to the modules and still had an auth error.

---

<div class="post-metadata">

**Author:** ![Montana](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/montana/32/9566_2.png) [@Montana](https://travis-ci.community/u/Montana)\
**Post date:** [June 2, 2020, 8:17am UTC](https://travis-ci.community/t/git-submodule-update-init-recursive-not-working-after-update/8823/4 "2020-06-02T08:17:06Z")

</div>

Would there be any chance I could see your build link?
