diff options
author | Pim van den Berg | 2011-03-10 11:22:36 +0100 |
---|---|---|
committer | Pim van den Berg | 2011-03-10 11:22:36 +0100 |
commit | b2c0c613fa5fbdc13221e9f4b2f3f66dd264e7fc (patch) | |
tree | 6700084b7fec3ce4a756b2d6739866e8e4bdec0d /inc/html.inc.php | |
parent | plugin/filecount: change color of files graph (diff) | |
download | apt-panopticon_cgp-b2c0c613fa5fbdc13221e9f4b2f3f66dd264e7fc.zip apt-panopticon_cgp-b2c0c613fa5fbdc13221e9f4b2f3f66dd264e7fc.tar.gz apt-panopticon_cgp-b2c0c613fa5fbdc13221e9f4b2f3f66dd264e7fc.tar.bz2 apt-panopticon_cgp-b2c0c613fa5fbdc13221e9f4b2f3f66dd264e7fc.tar.xz |
fallback to non-annotated tags in version detection
Diffstat (limited to 'inc/html.inc.php')
-rw-r--r-- | inc/html.inc.php | 2 |
1 files changed, 1 insertions, 1 deletions
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() { | |||
41 | $version = 'v?'; | 41 | $version = 'v?'; |
42 | if (file_exists($git) && is_dir($CONFIG['webdir'].'/.git')) { | 42 | if (file_exists($git) && is_dir($CONFIG['webdir'].'/.git')) { |
43 | chdir($CONFIG['webdir']); | 43 | chdir($CONFIG['webdir']); |
44 | $version = exec($git.' describe'); | 44 | $version = exec($git.' describe --tags'); |
45 | } elseif (file_exists($changelog)) { | 45 | } elseif (file_exists($changelog)) { |
46 | $changelog = file($changelog); | 46 | $changelog = file($changelog); |
47 | $version = explode(' ', $changelog[0]); | 47 | $version = explode(' ', $changelog[0]); |