我在 heroku 上创建了一个 PHP 应用程序,并安装了 sendgrid-php 子模块。但是,当我尝试推动它时,会发生这种情况:
$ git push heroku
Counting objects: 5, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (3/3), done.
Writing objects: 100% (3/3), 289 bytes, done.
Total 3 (delta 2), reused 0 (delta 0)
-----> Git submodules detected, installing
Submodule 'sendgrid-php' (https://github.com/sendgrid/sendgrid-php) registered for path 'sendgrid-php'
warning: templates not found /app/vendor/share/git-core/templates
Initialized empty Git repository in /tmp/build_wfcgkfb0p50x/sendgrid-php/.git/
fatal: reference is not a tree: 3f145137608a98b09eb01d447ff9d31d161ef2a2
Unable to checkout '3f145137608a98b09eb01d447ff9d31d161ef2a2' in submodule path 'sendgrid-php'
! Heroku push rejected, Submodule install failed with exit code 1
To git@heroku.com:gausschain.git
! [remote rejected] master -> master (pre-receive hook declined)
我还为 Heroku 配置了 SendGrid 插件。关于如何解决这个问题的任何想法?