Every time I push a commit to the submodule I need to update the parent repo to the latest commit in the submodule. Is there any automatic way to do that in the remote?
Every time push a commit in the submodule repo I want the parent to automatically point to the latest commit of the child repo. Please suggest if it's possible and how?
Welcome to the community.
Right now, I'm afraid there's no feature in Bitbucket Cloud to automatically update your parent repository with a submodule.
As a workaround, you can achieve this by using Bitbucket Pipelines.
The idea is to trigger a Pipelines build in your submodule repository that will update your parent repository to the latest commit in the submodule.
This way, there's no need for you to manually update your parent repository.
You can also check out the below existing community posts that might help:
Hope it helps and let me know if you have further questions that I can help with.
Regards,
Mark C
Hi Mark,
you wrote: "The idea is to trigger a Pipelines build in your submodule repository that will update your parent repository to the latest commit in the submodule."
How to do this excactly?
br,brian
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.