Skip to content

Conversation

@driesvints
Copy link
Member

GitHub has added a new --push flag which simplifies the process of pushing the HEAD branch to the newly created repo.

See cli/cli#3209 (comment)

@taylorotwell taylorotwell merged commit 1366f6f into master Aug 2, 2022
@taylorotwell taylorotwell deleted the driesvints-patch-1 branch August 2, 2022 13:28

$name = $input->getOption('organization') ? $input->getOption('organization')."/$name" : $name;
$flags = $input->getOption('github') ?: '--private';
$branch = $input->getOption('branch') ?: $this->defaultBranch();
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't this variable $branch (or even the whole line) useless now?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're right. But it's not necessary here anymore since the --push flag will push the new branch to the repo with the same name. This was more a fallback for how the old way worked.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I removed this line: ea0b3b6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants