Adding a flag for always pull/sync a submodule from the head revision of the selected branch #11587
Replies: 2 comments 4 replies
-
Add a script that does this. You can add the correct script and run it on your own. |
Beta Was this translation helpful? Give feedback.
-
"please do not do it" is not an option nor a valid reply for a requested workflow i think. |
Beta Was this translation helpful? Give feedback.
-
I know this is not a common workflow, but my goal is to always keep some specific submodule in sync automatically merging new contributions (from the head revision of a specific branch) instead of being linked to a specific submodule commit.
When the submodule has updates, i can see that looking on the tree where the "(nobranch)" label appear on submodule nodes.
Then, i always had to go into submodule and select/pull the correct branch, leading to mistakes.
Is it possible to automate this ? A new flag like "always sync to head revision" would be super useful for me in this scenario.
Beta Was this translation helpful? Give feedback.
All reactions