From a8991811d3f67f6ea9e85238dc0ba3f3b9823ea2 Mon Sep 17 00:00:00 2001 From: Matt Date: Mon, 1 Jan 2018 12:49:21 -0500 Subject: [PATCH] ARTOO: Use git describe for version strings --- artoo/git_describe_tag | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/artoo/git_describe_tag b/artoo/git_describe_tag index 87ccb84..a52667a 100755 --- a/artoo/git_describe_tag +++ b/artoo/git_describe_tag @@ -1,5 +1,7 @@ #!/bin/bash -# this command should really execute: -# git describe --tags -# but we don't have any version tags in the repo yet, so lets fake it: -echo v3.0.0 + +## Returns the most recent release tag string +## If the head is the most recent tag, it will display only the tag such as v3.0.0 +## If there are untagged commits after the last tag, it will display something v3.0.0-2-876FH +git describe --tags +