Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .castor/context.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
use Symfony\Component\Process\Process;

use function Castor\log;
use function worktree\get_worktree_name;

#[AsContext(default: true)]
function create_default_context(): Context
Expand Down Expand Up @@ -52,6 +53,11 @@ function create_default_context(): Context
$data['user_id'] = 1000;
}

$worktreeName = get_worktree_name($data['root_dir']);
if (null !== $worktreeName) {
$data['project_name'] .= '-wt-' . $worktreeName;
}

return new Context(
$data,
pty: Process::isPtySupported(),
Expand Down
17 changes: 0 additions & 17 deletions .castor/database.php

This file was deleted.

Loading
Loading