Browse files

use git-describe in bootstrap

``git describe --always`` is superior to ``git log`` in this case. It
generates a more useful version tag. For example, it allows a developer
building packages from the source tree to track and package unreleased
changes in a way that makes sense to package managers.

Using the --always flag reverts to the old behavior when no git tag is
resolvable from the current HEAD.
  • Loading branch information...
1 parent 88e3d1a commit 0706a84b84a2ca094c749af59642ae06bd0f6830 @tilgovi tilgovi committed Nov 27, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 bootstrap
@@ -33,7 +33,7 @@ mkdir -p build-aux
if test -z "$REVISION"; then
if test -d .git; then
- REVISION=`git log --pretty="format:%h" | head -1`-git
+ REVISION=`git describe --always`-git
# default to svn
REVISION=`\`which svn\` info . 2> /dev/null | awk "/Revision:/{print \\$2}"`

0 comments on commit 0706a84

Please sign in to comment.