# Deployment fails due to submodules

**URL:** <https://answers.netlify.com/t/deployment-fails-due-to-submodules/25883>\
**Category:** Support\
**Tags:** deployment, netlify-newbie\
**Created:** [November 6, 2020, 10:32pm UTC](https://answers.netlify.com/t/deployment-fails-due-to-submodules/25883 "2020-11-06T22:32:35Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![fool](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/fool/32/37_2.png) [@fool](https://answers.netlify.com/u/fool)\
**Post date:** [November 14, 2020, 12:16am UTC](https://answers.netlify.com/t/deployment-fails-due-to-submodules/25883/2 "2020-11-14T00:16:20Z")

</div>

Hiya @dhaval201279 and sorry to be slow to get back to you! This is described in this article on the topic:

> [@\[Support Guide\] Why isn’t my Hugo theme working correctly with Netlify?](https://answers.netlify.com/t/support-guide-why-isn-t-my-hugo-theme-working-correctly-with-netlify/129):
>
> Last reviewed by Netlify Support: September 2023 We get this question often. Luckily, there is both a common root cause for this issue and a solution for it! Most often, Hugo themes added using git clone to clone the theme’s repository into your existing Hugo site’s codebase will not work with Netlify. This is the common root cause I mentioned. So, what is the solution, you ask? Use the git submodule command instead! The Hugo team created fantastic (and detailed) documentation about this her…

It describes the correct way to configure themes so we can successfully clone them.

---

_[View the full topic](https://answers.netlify.com/t/deployment-fails-due-to-submodules/25883)._
