Преглед изворни кода

fix typespecial for VERSION_GIT - sort git tags (old git version)

Piotr Labudda пре 11 година
родитељ
комит
449fce06d9
2 измењених фајлова са 2 додато и 2 уклоњено
  1. 1 1
      SE/VERSION
  2. 1 1
      SE/se-lib/TypespecialVariable.php

+ 1 - 1
SE/VERSION

@@ -1 +1 @@
-3.10.0
+3.10.1

+ 1 - 1
SE/se-lib/TypespecialVariable.php

@@ -508,7 +508,7 @@ class TypespecialVariable extends TypespecialBase {
 				$gitPath = '/Library/Server/Web/Data/Sites/SE-production-git/';
 				$versions = array();
 				if (file_exists($gitPath)) {
-					$cmd = "cd {$gitPath} && git tag";
+					$cmd = "cd {$gitPath} && git tag -l| sort -r -n -t. -k1,1 -k2,2 -k3,3 -k4,4|head -10";
 					$cmdOut = null; $cmdRet = null;
 					exec($cmd, $cmdOut, $cmdRet);
 					if ($cmdRet == 0) {