summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xcreate_tarball2
1 files changed, 1 insertions, 1 deletions
diff --git a/create_tarball b/create_tarball
index 939f856..e2019f5 100755
--- a/create_tarball
+++ b/create_tarball
@@ -85,7 +85,7 @@ fi
MODULE=${SUBROOT#$TDEROOT/main/}
# Calculate version
-tag=`git tag | sort -r | while read t; do \
+tag=`git tag | sort -t. -k 1,1nr -k 2,2nr -k 3,3nr -k 4,4nr | while read t; do \
git branch --contains $t | cut -c 3- | grep -x "$branch" >/dev/null && \
echo "$t..HEAD" && break; done`