Skip to content

Commit 31eda58

Browse files
committed
FEAT-036: When obtaining tags, remove commit information delimited by the hat character.
1 parent 7fac879 commit 31eda58

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

roles/create_VM/tasks/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747

4848
- name: Obtain the current tag, (or version if untagged) of this repository.
4949
shell: |
50-
TAG=$(git name-rev --tags --name-only HEAD)
50+
TAG=$(git name-rev --tags --name-only HEAD | cut -f1 -d^)
5151
if [ "$(echo $TAG | tr -d [:space:])" == "undefined" ]; then
5252
git rev-parse --short HEAD
5353
else

0 commit comments

Comments
 (0)