Fix: Ensure tag and object are pushed together 64/71164/5
authorAnil Belur <abelur@linuxfoundation.org>
Thu, 19 Jan 2023 11:34:27 +0000 (21:34 +1000)
committerAnil Belur <abelur@linuxfoundation.org>
Thu, 30 Mar 2023 17:02:36 +0000 (22:32 +0530)
commit365d0c0fe65fdb539a552c04570b24ef053659b8
tree3e02b08c1f26fca36c281ea180d253f47ac1e2f8
parentc239626919f0aaceb98d1e27c237af7a3053db74
Fix: Ensure tag and object are pushed together

Address the problem where the tag is not pushed to the mainline
branch therefore causing the tag missing in the git history.

To fix this check commit count between the HEAD and
origin/${GERRIT_BRANCH} before the fetch and merge operation.
This is done to ensure that the tag lands on the target branch.
If the branch has already moved forward from the tagging point,
then a spur commit is created for the tag.

Change-Id: I675c815d4ac39244adf5168c1fbd051f8c626290
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
releasenotes/notes/fix-missing-tag-221e3263494b952a.yaml [new file with mode: 0644]
shell/release-job.sh