aleksandr-m / gitflow-maven-plugin

The Git-Flow Maven Plugin supports various Git workflows, including GitFlow and GitHub Flow. This plugin runs Git and Maven commands from the command line.
https://aleksandr-m.github.io/gitflow-maven-plugin/
Apache License 2.0
488 stars 180 forks source link

Add updateSubmodulesBeforeCommit option (fixes #348) #347

Closed marcelopaulon closed 1 year ago

marcelopaulon commented 2 years ago

This option makes the plugin perform git submodule update before each commit. This is useful because, without it, the plugin ends up overriding submodule references upon closing hotfix/feature/release branches (#348).

aleksandr-m commented 2 years ago

Can we automatically determine if update is necessary? Maybe checking presence of .gitmodules file, or something?

aleksandr-m commented 1 year ago

Implemented in https://github.com/aleksandr-m/gitflow-maven-plugin/commit/231ebb63749a630462e4471062ca67a4caa0cdef.