fixed version increment of release command

This commit is contained in:
octicon-git-branch(16/)
octicon-tag(16/)
Carsten Brandt
2017-02-08 10:08:37 +01:00
gitea-unlock(16/)
parent 0e6c6635e5
commit 89f66ae422
octicon-diff(16/tw-mr-1) 2 changed files with 7 additions and 1 deletions

6
build/controllers/ReleaseController.php
View File

@@ -1021,9 +1021,15 @@ class ReleaseController extends Controller
case self::MINOR: case self::MINOR:
$parts[1]++; $parts[1]++;
$parts[2] = 0; $parts[2] = 0;
if (isset($parts[3])) {
unset($parts[3]);
}
break; break;
case self::PATCH: case self::PATCH:
$parts[2]++; $parts[2]++;
if (isset($parts[3])) {
unset($parts[3]);
}
break; break;
default: default:
throw new Exception('Unknown version type.'); throw new Exception('Unknown version type.');

2
framework/BaseYii.php
View File

@@ -93,7 +93,7 @@ class BaseYii
*/ */
public static function getVersion() public static function getVersion()
{ {
return '2.0.12.2-dev'; return '2.0.12-dev';
} }
/** /**