Skip to content

Commit

Permalink
Update NewCommand.php (#238)
Browse files Browse the repository at this point in the history
  • Loading branch information
driesvints authored Aug 2, 2022
1 parent d81522d commit 1366f6f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/NewCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -289,8 +289,7 @@ protected function pushToGitHub(string $name, string $directory, InputInterface
$branch = $input->getOption('branch') ?: $this->defaultBranch();

$commands = [
"gh repo create {$name} --source=. {$flags}",
"git -c credential.helper= -c credential.helper='!gh auth git-credential' push -q -u origin {$branch}",
"gh repo create {$name} --source=. --push {$flags}",
];

$this->runCommands($commands, $input, $output, ['GIT_TERMINAL_PROMPT' => 0]);
Expand Down

0 comments on commit 1366f6f

Please sign in to comment.