mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-08 08:56:23 +08:00
fixed version increment of release command
This commit is contained in:
@ -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.');
|
||||||
|
|||||||
@ -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';
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user