Skip to content

Commit cfe45f5

Browse files
committed
Update LocalBuild.php
Add fetching needed branch for local build
1 parent e49128f commit cfe45f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

PHPCI/Model/Build/LocalBuild.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ protected function handleBareRepository(Builder $builder, $reference, $buildPath
5757

5858
// If it is indeed a bare repository, then extract it into our build path:
5959
if ($gitConfig['core']['bare']) {
60-
$builder->executeCommand('mkdir %2$s; git --git-dir="%1$s" archive master | tar -x -C "%2$s"', $reference, $buildPath);
60+
$builder->executeCommand('mkdir %2$s; git --git-dir="%1$s" archive %3$s | tar -x -C "%2$s"', $reference, $buildPath, $this->getBranch());
6161
return true;
6262
}
6363

0 commit comments

Comments
 (0)