Skip to content

Commit 2657805

Browse files
committed
scripts: release script reports checked out git commit
1 parent 44c83d7 commit 2657805

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

scripts/release.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,11 @@ function check_tag_correct() {
9595
if [[ $tag != $(git describe --tags) ]]; then
9696
red "tag $tag not checked out"
9797
exit 1
98+
else
99+
# At this point we know that the tag is checked out. Report checked out git
100+
# commit.
101+
commit_hash=$(git rev-parse HEAD)
102+
echo "Tag $tag checked out. Git commit: $commit_hash"
98103
fi
99104

100105
# Build tapd to extract version.

0 commit comments

Comments
 (0)