尝试推送 GHOST 时预接收挂钩被拒绝

时间:2021-03-17 06:27:11

标签: heroku ghost-blog

我正在尝试通过 heroku 应用托管幽灵博客。在尝试使用命令“git push heroku main”推送时,我收到以下错误:

Enumerating objects: 117255, done.
Counting objects: 100% (117255/117255), done.
Delta compression using up to 12 threads
Compressing objects: 100% (36381/36381), done.
Writing objects: 100% (117255/117255), 50.31 MiB | 1.39 MiB/s, done.
Total 117255 (delta 78401), reused 117229 (delta 78377), pack-reused 0
remote: Git submodules detected, installing:
remote: Submodule 'content/themes/casper' (/mnt/endosome/workspaces/TryGhost/Casper.git) 
registered for path 'content/themes/casper'
remote: Submodule 'core/client' (/mnt/endosome/workspaces/TryGhost/Admin.git) registered for 
path 'core/client'
remote: fatal: repository '/mnt/endosome/workspaces/TryGhost/Casper.git' does not exist
remote: fatal: clone of '/mnt/endosome/workspaces/TryGhost/Casper.git' into submodule path 
'content/themes/casper' failed
remote: 
remote: !       Push rejected, submodule install failed

我提到了 https://github.com/TryGhost/Ghost/issues/10265,但提到的修复对我也不起作用。

1 个答案:

答案 0 :(得分:0)

您应该通过 git@mycogit/cit_pplus.git 询问维护 repo 的人。

您的提交被该存储库的 pre-receive 钩子拒绝(这是一个用户可配置的脚本,用于分析传入的提交并确定它们是否足够好以被存储库接受)。

让那个人更新钩子也是一个好主意,这样它就会打印拒绝的原因。

如果维护者是您自己,那么您在服务器端的设置似乎有问题。届时请分享更多信息。

相关问题