Skip to content

Commit

Permalink
#11 removed vcs-tag-action workaround, omitting tag message instead
Browse files Browse the repository at this point in the history
  • Loading branch information
bonndan committed Mar 11, 2014
1 parent 3138a2b commit 4d1ee52
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 9 deletions.
5 changes: 0 additions & 5 deletions src/Liip/RMT/Command/FinishCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,6 @@ protected function execute(InputInterface $input, OutputInterface $output)
$action->setContext($this->getContext());
$this->getContext()->getList(Context::POSTRELEASE_LIST)->push($action);

//push a vcs-tag action (see #11)
$tagAction = new \Liip\RMT\Action\VcsTagAction();
$tagAction->setContext($this->getContext());
$this->getContext()->getList(Context::POSTRELEASE_LIST)->push($tagAction);

parent::execute($input, $output);
}
}
4 changes: 2 additions & 2 deletions src/Liip/RMT/VCS/GitFlow.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public function finishRelease()
{
$detector = new GitFlowBranch($this, GitFlowBranch::RELEASE);
$version = $detector->getCurrentVersion();
$command = 'flow release finish -n ' . $version;
$command = 'flow release finish -m "' . $version . '" ' . $version;
$this->executeGitCommand($command);
return $version;
}
Expand All @@ -62,7 +62,7 @@ public function finishHotfix()
{
$detector = new GitFlowBranch($this, GitFlowBranch::HOTFIX);
$version = $detector->getCurrentVersion();
$command = 'flow hotfix finish -n ' . $version;
$command = 'flow hotfix finish -m "' . $version . '" ' . $version;
$this->executeGitCommand($command);
return $version;
}
Expand Down
4 changes: 2 additions & 2 deletions test/Liip/RMT/Tests/Unit/VCS/GitFlowTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public function testFinishRelease()
system("git flow release start 2.2.2 1>/dev/null 2>&1");

$version = $this->gitFlow->finishRelease('test');
$this->assertEquals('flow release finish -n 2.2.2', $this->gitFlow->lastCommand);
$this->assertEquals('flow release finish -m "2.2.2" 2.2.2', $this->gitFlow->lastCommand);
$this->assertInstanceOf("\Liip\RMT\Version", $version);
$this->assertEquals("2.2.2", (string)$version);
}
Expand All @@ -77,7 +77,7 @@ public function testFinishHotfix()
system("git flow hotfix start 2.2.2 1>/dev/null 2>&1");

$version = $this->gitFlow->finishHotfix('test');
$this->assertEquals('flow hotfix finish -n 2.2.2', $this->gitFlow->lastCommand);
$this->assertEquals('flow hotfix finish -m "2.2.2" 2.2.2', $this->gitFlow->lastCommand);
$this->assertInstanceOf("\Liip\RMT\Version", $version);
}

Expand Down

0 comments on commit 4d1ee52

Please sign in to comment.