Deployment fails due to submodules

While deploying my application, I am consistently getting my deployment failed with below logs -

3:48:34 AM: Build ready to start

3:48:36 AM: build-image version: 253f72909528f25a82c4640ca58f2e974d52abd9

3:48:36 AM: build-image tag: v3.4.4

3:48:36 AM: buildbot version: d7fbddb77714d524c4b4de0312067b122124afee

3:48:36 AM: Fetching cached dependencies

3:48:36 AM: Failed to fetch cache, continuing with build

3:48:36 AM: Starting to prepare the repo for build

3:48:36 AM: No cached dependencies found. Cloning fresh repo

3:48:36 AM: git clone GitHub - dhaval201279/dhaval-shah.com: Personal blog

3:48:38 AM: Preparing Git Reference refs/heads/master

3:48:41 AM: Error checking out submodules: Submodule ‘themes/hugo-clarity’ (GitHub - chipzoller/hugo-clarity: A theme for Hugo based on VMware Clarity) registered for path ‘themes/hugo-clarity’
Cloning into ‘/opt/build/repo/themes/hugo-clarity’…
fatal: remote error: upload-pack: not our ref cb53ae2a34beb99e80552d6ac791118c83bdbeed
Fetched in submodule path ‘themes/hugo-clarity’, but it did not contain cb53ae2a34beb99e80552d6ac791118c83bdbeed. Direct fetching of that commit failed.

3:48:41 AM: Failing build: Failed to prepare repo

3:48:41 AM: Failed during stage ‘preparing repo’: Error checking out submodules: Submodule ‘themes/hugo-clarity’ (GitHub - chipzoller/hugo-clarity: A theme for Hugo based on VMware Clarity) registered for path ‘themes/hugo-clarity’
Cloning into ‘/opt/build/repo/themes/hugo-clarity’…
fatal: remote error: upload-pack: not our ref cb53ae2a34beb99e80552d6ac791118c83bdbeed
Fetched in submodule path ‘themes/hugo-clarity’, but it did not contain cb53ae2a34beb99e80552d6ac791118c83bdbeed. Direct fetching of that commit failed.
: exit status 1

3:48:41 AM: Finished processing build request in 5.103713101s

Can someone help me to address above issue?

Source code of my blog

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

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