Revert "Make sure to get the last chronological tag, instead of relying on the bogus git tag sorting."

This reverts commit 27e8049fd7.
This commit is contained in:
Tj Holowaychuk 2011-03-28 12:29:27 -07:00
parent c8dc5a8a19
commit f659f34375

View file

@ -6,8 +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)' \
--count=1 | sed 's/^refs\/tags\///'`
version=`git tag | tail -n 1`
if test -z "$version"; then
git log --pretty="format: * %s"
else
@ -21,4 +20,4 @@ else
if [ -f $CHANGELOG ]; then cat $CHANGELOG >> $tmp; fi
mv $tmp $CHANGELOG
test -n "$EDITOR" && $EDITOR $CHANGELOG
fi
fi