Skip to content
This repository has been archived by the owner on Jun 14, 2023. It is now read-only.

Commit

Permalink
[FEATURE] RS-1988 aoe/tagging library checkout-Prozess anpassen
Browse files Browse the repository at this point in the history
  • Loading branch information
michael.sandritter committed Jul 19, 2016
1 parent 5882f86 commit 94ac03e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/Vcs/Driver/GitDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ public function hasChangesSinceTag($tag, $branch, $path, OutputInterface $output
{
try {
$this->getGit()->getAdapter()->execute('fetch', ['origin'], $path);
$this->getGit()->getAdapter()->execute('branch', [$branch ,'origin/' . $branch, '-fq'], $path);
$this->getGit()->getAdapter()->execute('branch', [$branch ,'origin/' . $branch, '-f'], $path);
$diff = $this->getGit()->getAdapter()->execute('diff', array('--ignore-all-space', $tag), $path);
} catch (\RuntimeException $e) {
if (false !== strpos($e->getMessage(), 'unknown revision or path')) {
Expand Down
8 changes: 4 additions & 4 deletions test/Vcs/Driver/GitDriverTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ public function shouldNotHaveChangesSinceTagWithNullValueFromGitAdapter()

$adapter->expects($this->at(1))->method('execute')->with(
'branch',
array('master', 'origin/master', '-fq'),
array('master', 'origin/master', '-f'),
'/home/my/vcs/repo'
);

Expand Down Expand Up @@ -232,7 +232,7 @@ public function shouldNotHaveChangesSinceTagWithEmptyStringValueFromGitAdapter()

$adapter->expects($this->at(1))->method('execute')->with(
'branch',
array('master', 'origin/master', '-fq'),
array('master', 'origin/master', '-f'),
'/home/my/vcs/repo'
);

Expand Down Expand Up @@ -277,7 +277,7 @@ public function shouldHaveChangesSinceTag()

$adapter->expects($this->at(1))->method('execute')->with(
'branch',
array('master', 'origin/master', '-fq'),
array('master', 'origin/master', '-f'),
'/home/my/vcs/repo'
);

Expand Down Expand Up @@ -329,7 +329,7 @@ public function shouldHaveChangesSinceTagOnUnknownTag()

$adapter->expects($this->at(1))->method('execute')->with(
'branch',
array('master', 'origin/master', '-fq'),
array('master', 'origin/master', '-f'),
'/home/my/vcs/repo'
);

Expand Down

0 comments on commit 94ac03e

Please sign in to comment.