summaryrefslogtreecommitdiff
path: root/include/version.php
diff options
context:
space:
mode:
authorjustauser <[email protected]>2013-06-27 11:57:49 -0400
committerjustauser <[email protected]>2013-06-27 11:57:49 -0400
commit7171f32dc5ace4f36e1e70605ae96ebdbdf25c4f (patch)
treee998d4fca34cebe801c982d1d7bf8932adbf218a /include/version.php
parent891e36f57e2e3955a4f13019e8fdc58fce826434 (diff)
parentfac096405338e0f46fa248320318436d862678fc (diff)
Merge remote-tracking branch 'origin' into hookhead
Conflicts: classes/feeds.php fix for merging up to the origin
Diffstat (limited to 'include/version.php')
-rw-r--r--include/version.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/version.php b/include/version.php
index c58dc3a19..460c189d6 100644
--- a/include/version.php
+++ b/include/version.php
@@ -5,9 +5,9 @@
date_default_timezone_set('UTC');
$root_dir = dirname(dirname(__FILE__));
- if (is_dir("$root_dir/.git") && file_exists("$root_dir/.git/ORIG_HEAD")) {
+ if (is_dir("$root_dir/.git") && file_exists("$root_dir/.git/refs/heads/master")) {
- $suffix = substr(trim(file_get_contents("$root_dir/.git/ORIG_HEAD")), 0, 7);
+ $suffix = substr(trim(file_get_contents("$root_dir/.git/refs/heads/master")), 0, 7);
return VERSION_STATIC . ".$suffix";
} else {