避免使用 heroku 尝试克隆我项目的子模块
Avoid heroku to try to clone my project's submodule
将我的应用程序部署到 heroku 时,它正在尝试克隆一个(私有)git 子模块,但该子模块对开发有用但对部署没有用。
我不想在子模块配置中硬编码我的 bitbucket 凭据。
有什么方法可以告诉 heroku 忽略子模块吗?
Heroku 的技术支持回答:
Hi Pedro,
git itself doesn't have a way of ignoring submodules on push, my only
idea would be to de-initialize and re-initialize during each push,
perhaps automating this via git's pre-push hook. However, doing this
would delete and re-clone the repository each time, which is very
inefficient.
Is this private repository a utility that you've developed on your
own? Or is it a version of some other software that you maintain a
copy of? Can the package be installed/loaded into your development
environment in a way other than the git submodule method?
Thanks! Jason
将我的应用程序部署到 heroku 时,它正在尝试克隆一个(私有)git 子模块,但该子模块对开发有用但对部署没有用。
我不想在子模块配置中硬编码我的 bitbucket 凭据。
有什么方法可以告诉 heroku 忽略子模块吗?
Heroku 的技术支持回答:
Hi Pedro,
git itself doesn't have a way of ignoring submodules on push, my only idea would be to de-initialize and re-initialize during each push, perhaps automating this via git's pre-push hook. However, doing this would delete and re-clone the repository each time, which is very inefficient.
Is this private repository a utility that you've developed on your own? Or is it a version of some other software that you maintain a copy of? Can the package be installed/loaded into your development environment in a way other than the git submodule method?
Thanks! Jason