Skip to content

Commit bb4667c

Browse files
author
epriestley
committed
Fix WorkingCopy step to read correct commit variables
Summary: Ref T9252. This variable was always wrong but we fell back to just resetting to `HEAD` before. Use the correct variable name. Test Plan: Verified variable name. Reviewers: chad, hach-que Reviewed By: hach-que Maniphest Tasks: T9252 Differential Revision: https://secure.phabricator.com/D14224
1 parent 2728a9f commit bb4667c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/applications/harbormaster/step/HarbormasterLeaseWorkingCopyBuildStepImplementation.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ private function buildRepositoryMap(HarbormasterBuildTarget $build_target) {
152152

153153
$repository = $repositories[$repository_phid];
154154

155-
$commit = idx($variables, 'repository.commit');
155+
$commit = idx($variables, 'buildable.commit');
156156
$ref_uri = idx($variables, 'repository.staging.uri');
157157
$ref_ref = idx($variables, 'repository.staging.ref');
158158
if ($commit) {

0 commit comments

Comments
 (0)