Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/github/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Git 无法用我的雨果主题在netlify上建立我的雨果博客_Git_Github_Hugo_Netlify - Fatal编程技术网

Git 无法用我的雨果主题在netlify上建立我的雨果博客

Git 无法用我的雨果主题在netlify上建立我的雨果博客,git,github,hugo,netlify,Git,Github,Hugo,Netlify,我已经在这个网站上查看了我的问题,但我没有找到解决方案 我有我所有的工作,我有一个问题,我的工作。 我想用它在netlify上发布我的博客,但我有一个问题 3:33:45 PM: Build ready to start 3:33:48 PM: Fetching cached dependencies 3:33:48 PM: Starting to download cache of 53.5MB 3:33:49 PM: Finished downloading cache in 521.502

我已经在这个网站上查看了我的问题,但我没有找到解决方案

我有我所有的工作,我有一个问题,我的工作。 我想用它在netlify上发布我的博客,但我有一个问题

3:33:45 PM: Build ready to start
3:33:48 PM: Fetching cached dependencies
3:33:48 PM: Starting to download cache of 53.5MB
3:33:49 PM: Finished downloading cache in 521.502937ms
3:33:49 PM: Starting to extract cache
3:33:50 PM: Finished extracting cache in 1.647501032s
3:33:51 PM: Finished fetching cache in 2.284751664s
3:33:51 PM: Starting to prepare the repo for build
3:33:51 PM: Preparing Git Reference refs/heads/hugo-initio
3:33:53 PM: Error checking out submodules: error: Server does not request for unadvertised object 43ea09ddf565af64ccf248ba68447745e158cc3d
Fetched in submodule path 'themes/hugo-initio', but it did not contain 43ea09ddf565af64ccf248ba68447745e158cc3d. Direct fetching of that commit failed.
3:33:53 PM: Failing build: Failed to prepare repo
3:33:53 PM: failed during stage 'preparing repo': Error checking out submodules: error: Server does not allow request for unadvertised object 43ea09ddf565af64ccf248ba68447745e158cc3d
Fetched in submodule path 'themes/hugo-initio', but it did not contain 43ea09ddf565af64ccf248ba68447745e158cc3d. Direct fetching of that commit failed. 
: exit status 1
3:33:53 PM: Finished processing build request in 5.867246119s

我已经尝试了很多东西,但我还是被卡住了。

这是由于没有.gitmodules设置,从不同的repo上传了主题 解决方案:

  • 若这是你们自己的自定义主题,你们需要删除.git文件,然后重新将项目加载到repo,确保所有的主题文件都提交并推送了什么

  • 如果您使用来自不同回购协议的主题,则需要为此编写设置,触摸.gitmodules并添加如下内容:

    [submodule "themes/hugo-tranquilpeak-theme"]
        path = themes/hugo-tranquilpeak-theme
        url = url_repo_here
    

  • 好。我已经用clear cache重新部署了我的项目,构建完成了。。。。