summary |
shortlog |
log |
commit | commitdiff |
review |
tree
raw |
patch |
inline | side by side (from parent 1:
1cb46d1)
When version bump when branch cutting we want to bump by x.(y+1).z
and when performing a release bump we want to bump by x.y.(z+1)
however the current code always sets the message to "Bump version by
x.y.(z+1)" regardless of what kind of bump it was.
Change-Id: Ic88946b61f9381792c5c61190530d5d8b35e03ee
Signed-off-by: Thanh Ha <zxiiro@gmail.com>
if [ "$BRANCH_CUT" = "false" ]; then
lftools version release "$RELEASE_TAG"
if [ "$BRANCH_CUT" = "false" ]; then
lftools version release "$RELEASE_TAG"
+ commit_msg="Bump versions by x.y.(z+1)"
+else
+ commit_msg="Bump versions by x.(y+1).z"
fi
lftools version bump "$RELEASE_TAG"
fi
lftools version bump "$RELEASE_TAG"
git checkout -f opendaylight/pom.xml || true
popd || true
git checkout -f opendaylight/pom.xml || true
popd || true
-git submodule foreach "git commit -asm 'Bump versions by x.y.(z+1)'"
+git submodule foreach "git commit -asm '${commit_msg}'"
# Only submodules need to be bumped, we can ignore autorelease's bump information
git checkout -f
# Only submodules need to be bumped, we can ignore autorelease's bump information
git checkout -f