mirror of
https://github.com/tj/git-extras.git
synced 2026-09-14 01:16:31 -04:00
Fixes sorting issues with annotated and lightweight tags.
This commit is contained in:
parent
e94e18aee5
commit
226f58ab6f
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Reference in a new issue