private function tagStableVersion($tag)
{
$this->tagSrcWith($tag, true);
try {
$this->git->addAllAndCommit('Set version to ' . $tag . '.');
} catch (\exception $exception) {
$this->writeError($exception->getMessage());
$this->git->checkoutAllFiles();
return false;
}
return true;
}