$ git checkout -b add-gallery
$ cd public
$ git submodule add https://source.joinmastodon.org/Gargron/gallery.git gallery
$ git commit
$ git push --set-upstream origin add-gallery
Pull Requestを作成して、できあがったPRアプリで動作確認する
…って /gallery/ は404になりますね。
$ heroku run 'ls -a public/gallery/'
. ..
私が悪うございました。てか
https://devcenter.heroku.com/articles/git-submodules
Using submodules for builds on Heroku is only supported for builds triggered with git pushes. Builds created with the API do not resolve submodules. This is also the case for GitHub sync.
どうしろと…