add --tags to 'git describe'

'git describe' calculates the version since the last **annotated** diff. Adding --tags shows the most recent tags (v0.94, for example) regardless if they're annotated or not.
This commit is contained in:
Matt Simerson 2014-09-16 18:25:46 -07:00
parent ef80767652
commit 4a48c4584d

View File

@ -16,7 +16,7 @@ my $git;
if (-e ".git") {
local $ENV{PATH} = "/usr/bin:/usr/local/bin:/opt/local/bin/";
$git = `git describe`;
$git = `git describe --tags`;
$git && chomp $git;
}