From 4a48c4584d7b979716e748b9cc257584b6c8984d Mon Sep 17 00:00:00 2001 From: Matt Simerson Date: Tue, 16 Sep 2014 18:25:46 -0700 Subject: [PATCH] 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. --- lib/Qpsmtpd.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Qpsmtpd.pm b/lib/Qpsmtpd.pm index 4036f1a..3926655 100644 --- a/lib/Qpsmtpd.pm +++ b/lib/Qpsmtpd.pm @@ -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; }