Permalink
Browse files

Fix ChangeLog generation for the case when we're on a tag

The mechanism erroneously tried to generate a changelog "between vX.Y and vX.Y" when
we're on that very tag.
  • Loading branch information...
1 parent ccf0a05 commit da08641c0ccfe1b43038f3bd840bbc3b2d5253f5 @pief committed Feb 26, 2013
Showing with 1 addition and 0 deletions.
  1. +1 −0 Makefile
View
@@ -44,6 +44,7 @@ ChangeLog:
@[ -e ChangeLog ] && rm ChangeLog || true
@CURRENT=`git describe`; \
set -- `git tag -l | egrep ^[[:digit:]]+.[[:digit:]]+\(.[[:digit:]]+\)?$ | sort -r`; \
+ if [ "$$CURRENT" == "$$1" ] ; then shift; fi; \
until [ -z "$$CURRENT" ] ; do \
if [ -n "$$1" ] ; then \
LINE="Changes from v$$1 to v$$CURRENT"; \

0 comments on commit da08641

Please sign in to comment.