Skip to content

Commit 9610e48

Browse files
committed
Fix: not activating environment with push options, after asking interactively
1 parent 8cf0f44 commit 9610e48

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Command/Environment/EnvironmentPushCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
251251
$gitArgs[] = '--progress';
252252
}
253253
if ($gitPushOptionsEnabled) {
254-
if ($input->getOption('branch') || $input->getOption('activate')) {
254+
if ($activateRequested) {
255255
$gitArgs[] = '--push-option=environment.status=active';
256256
}
257257
if ($parentId !== null) {

0 commit comments

Comments
 (0)