-
-
Notifications
You must be signed in to change notification settings - Fork 187
Closed
Description
To reproduce the problem:
- Create project A (maven project) which has the gitflow maven plugin and imports the git submodule Asub. Asub can contain anything, just text files for example. Project A must have a main branch and a develop branch.
- Open a new release branch in A using the gitflow plugin.
- Add a new commit to Asub (and push it).
- Update the reference in project A's release branch to point to the most recent commit in Asub.
- Close the release branch in project A.
Expected behavior: both main and develop point to the latest commit in Asub.
Actual behavior: main points to the latest commit but develop does not (gitflow plugin's "Update develop version back to pre-merge state" commit overwrote the reference back to what it was in the develop branch before closing the release branch.
This seems to happen because the plugin is not performing git submodule update
after checkout, and when it commits it uses the -a
option which adds all changes (including the dirty submodule reference, which points to the old commit in Asub).
So, I've opened a PR to add the option of always performing a git submodule update before the plugin commits any changes.
juanplopes, brunoguic and luciopaiva
Metadata
Metadata
Assignees
Labels
No labels