Netlify로 Publishing 중 Git Submodule 에러가 나는 경우

쉽다

Netlify로 퍼블리싱 중 이런 에러가 났다.

7:21:12 PM: Error checking out submodules: Submodule 'themes/hugo_theme_pickles' (https://github.com/mismith0227/hugo_theme_pickles) registered for path 'themes/hugo_theme_pickles'
Cloning into '/opt/build/repo/themes/hugo_theme_pickles'...
error: Server does not allow request for unadvertised object 0345c9577401134afcce1f94a30455a5545bdacb
Fetched in submodule path 'themes/hugo_theme_pickles', but it did not contain 0345c9577401134afcce1f94a30455a5545bdacb. Direct fetching of that commit failed.

일단 이 블로그의 테마인 Hugo Theme Pickles를 Netlify가 가져오다가 문제가 생긴 것 같다. 이 블로그에서 테마들은 전부 Git Submodule로 되어있다. 아무튼 에러 내용만 검색하니 손쉽게 해결방법을 찾을 수 있었다.

1
git submodule sync

또는 프로젝트 루트로 가서

1
git submodule update --remote
댓글을 불러올까요?