parent
04b1ddb79f
commit
843877cd6d
|
@ -179,7 +179,7 @@ class VersionGuesser
|
|||
}
|
||||
|
||||
if (!$isFeatureBranch) {
|
||||
return $version;
|
||||
return array('version' => $version, 'commit' => null, 'pretty_version' => $version);
|
||||
}
|
||||
|
||||
// re-use the HgDriver to fetch branches (this properly includes bookmarks)
|
||||
|
|
|
@ -88,7 +88,7 @@ class VersionGuesserTest extends \PHPUnit_Framework_TestCase
|
|||
$guesser = new VersionGuesser($config, $executor, new VersionParser());
|
||||
$versionArray = $guesser->guessVersion(array(), 'dummy/path');
|
||||
|
||||
$this->assertEquals($branch, $versionArray['version']);
|
||||
$this->assertEquals('dev-' . $branch, $versionArray['version']);
|
||||
$this->assertEmpty($versionArray['commit']);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue