Home
Support Forums

Deployment error in submodule Hugo theme

Hi! I need advice to debug deploy Netlify App

I am having this issues when deploying it:

5:15:04 PM: Build ready to start
5:15:07 PM: build-image version: 653805ca4a64301556e56dc4b321ef8fc20cbb7c
5:15:07 PM: build-image tag: v3.8.2
5:15:07 PM: buildbot version: b63d1717a02404f31eb4f9710e846c40c86af045
5:15:07 PM: Building without cache
5:15:07 PM: Starting to prepare the repo for build
5:15:08 PM: No cached dependencies found. Cloning fresh repo
5:15:08 PM: git clone https://github.com/javierfs/website-projects
5:15:10 PM: Preparing Git Reference refs/heads/master
5:15:13 PM: Error checking out submodules: Submodule 'themes/DoIt' (https://github.com/javierfs/website-projects.git) registered for path 'themes/DoIt'Cloning into '/opt/build/repo/themes/DoIt'...fatal: remote error: upload-pack: not our ref 263b037ae5f0d67dd37f4ca282e112e35e5008afFetched in submodule path 'themes/DoIt', but it did not contain 263b037ae5f0d67dd37f4ca282e112e35e5008af. Direct fetching of that commit failed.
5:15:13 PM: Creating deploy upload records
5:15:13 PM: Failing build: Failed to prepare repo
5:15:13 PM: Failed during stage 'preparing repo': Error checking out submodules: Submodule 'themes/DoIt' (https://github.com/javierfs/website-projects.git) registered for path 'themes/DoIt'Cloning into '/opt/build/repo/themes/DoIt'...fatal: remote error: upload-pack: not our ref 263b037ae5f0d67dd37f4ca282e112e35e5008afFetched in submodule path 'themes/DoIt', but it did not contain 263b037ae5f0d67dd37f4ca282e112e35e5008af. Direct fetching of that commit failed.: exit status 1
5:15:13 PM: Finished processing build request in 6.082723184s

I have the DoIt Hugo theme. I changed some stylus in the theme folder and I needed to add a submodule

[submodule "themes/DoIt"]
        path = themes/DoIt
        url = https://github.com/javierfs/website-projects.git
        ignore = untracked

Still, I am not sure what is this reference number that Netlify does not recognise. Could anyone give me some advice on how to solve this problem?

Welcome to the forums @Sanchezj1

The DoIt theme you are referencing in website-project/themes (ie. https://github.com/javierfs/website-projects/tree/263b037ae5f0d67dd37f4ca282e112e35e5008af) does not exist.