-
-
Notifications
You must be signed in to change notification settings - Fork 184
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Plugin overwrites git submodule references #348
Comments
@marcelopaulon Cannot reproduce. Updating develop back to pre-merge state changes only pom.xml, how it could affect git submodule? Can you include exact commands that you execute, step by step? |
@aleksandr-m The problem happens because of git quirk when dealing with submodules. Performing a This problem occurs when you update the xmls and perform a |
The plugin looks for the |
Thank you! 💜 |
To reproduce the problem:
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.
The text was updated successfully, but these errors were encountered: