From b2c0c613fa5fbdc13221e9f4b2f3f66dd264e7fc Mon Sep 17 00:00:00 2001 From: Pim van den Berg Date: Thu, 10 Mar 2011 11:22:36 +0100 Subject: fallback to non-annotated tags in version detection --- inc/html.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/html.inc.php b/inc/html.inc.php index f8a5b62..1dc3d2c 100644 --- a/inc/html.inc.php +++ b/inc/html.inc.php @@ -41,7 +41,7 @@ function html_end() { $version = 'v?'; if (file_exists($git) && is_dir($CONFIG['webdir'].'/.git')) { chdir($CONFIG['webdir']); - $version = exec($git.' describe'); + $version = exec($git.' describe --tags'); } elseif (file_exists($changelog)) { $changelog = file($changelog); $version = explode(' ', $changelog[0]); -- cgit v1.1