Browse Source

Fix "make prepare_tag" tag sort order

Loïc Hoguin 5 years ago
parent
commit
17c5e8eeae
1 changed files with 2 additions and 2 deletions
  1. 2 2
      Makefile

+ 2 - 2
Makefile

@@ -68,8 +68,8 @@ ci-setup:: $(DEPS_DIR)/ct_helper
 
 
 prepare_tag:
 prepare_tag:
 	$(verbose) echo -n "Most recent tag:            "
 	$(verbose) echo -n "Most recent tag:            "
-	$(verbose) git tag | tail -n1
-	$(verbose) git verify-tag `git tag | tail -n1`
+	$(verbose) git tag --sort=creatordate | tail -n1
+	$(verbose) git verify-tag `git tag --sort=creatordate | tail -n1`
 	$(verbose) echo -n "MAKEFILE: "
 	$(verbose) echo -n "MAKEFILE: "
 	$(verbose) grep -m1 PROJECT_VERSION Makefile
 	$(verbose) grep -m1 PROJECT_VERSION Makefile
 	$(verbose) echo -n "APP:                 "
 	$(verbose) echo -n "APP:                 "