Skip to content

Commit

Permalink
Try adding the username to the URL
Browse files Browse the repository at this point in the history
  • Loading branch information
edgrosvenor committed Jan 18, 2025
1 parent c673118 commit 7551651
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/kibble/src/Commands/SplitPackagesCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,14 @@ class SplitPackagesCommand extends Command

public function handle(): int
{
$username = config('kibble.github_username');
$token = config('kibble.github_token');

foreach (File::directories(base_path('packages')) as $package) {
$json = json_decode(File::get("{$package}/composer.json"), true);
$this->info("Splitting package at '{$package}' into repository '{$json['name']}'");

$repoUrl = "https://{$token}@github.com/{$json['name']}.git";
$repoUrl = "https://{$username}:{$token}@github.com/{$json['name']}.git";

Process::run("git config -l | grep 'http\..*\.extraheader' | cut -d= -f1 | xargs -L1 git config --unset-all");

Expand Down

0 comments on commit 7551651

Please sign in to comment.