diff --git a/release-tools/src/main/java/org/springframework/data/release/cli/ReleaseCommands.java b/release-tools/src/main/java/org/springframework/data/release/cli/ReleaseCommands.java index 49848dd..7fdf91d 100644 --- a/release-tools/src/main/java/org/springframework/data/release/cli/ReleaseCommands.java +++ b/release-tools/src/main/java/org/springframework/data/release/cli/ReleaseCommands.java @@ -132,12 +132,16 @@ public class ReleaseCommands implements CommandMarker { git.commit(iteration, "After release cleanups."); // Prepare maintenance branches - git.checkout(iteration); - git.createMaintenanceBranches(iteration); + if (iteration.getIteration().isGAIteration()) { - build.updateProjectDescriptors(iteration, Phase.MAINTENANCE); - build.prepareVersions(iteration, Phase.MAINTENANCE); - git.commit(iteration, "Prepare next development iteration."); + git.createMaintenanceBranches(iteration); + + build.updateProjectDescriptors(iteration, Phase.MAINTENANCE); + build.prepareVersions(iteration, Phase.MAINTENANCE); + git.commit(iteration, "Prepare next development iteration."); + + git.checkout(iteration); + } } /**