diff --git a/src/applications/drydock/blueprint/DrydockWorkingCopyBlueprintImplementation.php b/src/applications/drydock/blueprint/DrydockWorkingCopyBlueprintImplementation.php index 2527a34cdc..843f043baa 100644 --- a/src/applications/drydock/blueprint/DrydockWorkingCopyBlueprintImplementation.php +++ b/src/applications/drydock/blueprint/DrydockWorkingCopyBlueprintImplementation.php @@ -213,7 +213,10 @@ final class DrydockWorkingCopyBlueprintImplementation $cmd[] = 'git reset --hard %s'; $arg[] = $commit; } else if ($branch !== null) { - $cmd[] = 'git reset --hard %s'; + $cmd[] = 'git checkout %s'; + $arg[] = $branch; + + $cmd[] = 'git reset --hard origin/%s'; $arg[] = $branch; } else { $cmd[] = 'git reset --hard HEAD';