Init git submodule at specific commit hash
nickrttnPRO
7 months ago
I've got a repo with a git submodule. Up until now, I have been cloning the submodule during at the latest commit in the main branch, but as we grow our repo, that is no longer sufficient and we would like to clone the submodule at the hash referenced in the parent repo. How could we do this, considering Railway doesn't init a git repo during the build?
ⓘ Deployment information is only viewable by project members and Railway employees.
1 Replies
6 months ago
Heya, I'm not sure your setup would fully work on railway; You might need to add some logic in your Dockerfile to fetch the submodules accordingly.
Status changed to Awaiting User Response railway[bot] • 7 months ago