From 226f58ab6fef4b1e8ff788c84cf94bd14ab5a33f Mon Sep 17 00:00:00 2001 From: Matt Colyer Date: Wed, 29 Feb 2012 17:25:47 -0800 Subject: [PATCH] Fixes sorting issues with annotated and lightweight tags. --- bin/git-changelog | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/git-changelog b/bin/git-changelog index c7c390c..7fe053d 100755 --- a/bin/git-changelog +++ b/bin/git-changelog @@ -6,7 +6,7 @@ DATE=`date +'%Y-%m-%d'` HEAD="\nn.n.n / $DATE \n==================\n" if test "$1" = "--list"; then - version=`git for-each-ref refs/tags --sort=-authordate --format='%(refname)' \ + version=`git for-each-ref refs/tags --sort="-*authordate" --format='%(refname)' \ --count=1 | sed 's/^refs\/tags\///'` if test -z "$version"; then git log --pretty="format: * %s"