Skip to content

Commit

Permalink
Use version (tag) instead of branch to determine revision checked out.
Browse files Browse the repository at this point in the history
  • Loading branch information
robnoake committed Nov 7, 2011
1 parent 875dbd8 commit dcdf06c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/clock/MaidenClockCommon.php
Expand Up @@ -121,7 +121,7 @@ public function build($environmentName, $version) {
$this->exec("git clone -b {$deploymentBranch} . {$tempBuildPath}");
chdir($tempBuildPath);
$this->exec("git checkout {$version}");
$revision = $this->exec("git log --pretty=format:%h -b {$deploymentBranch} | head -n1 ", true, true);
$revision = $this->exec("git log --pretty=format:%h -b {$version} | head -n1 ", true, true);
$this->exec("git submodule init");
$this->exec("git submodule update");
chdir($currentDirectory);
Expand Down

0 comments on commit dcdf06c

Please sign in to comment.