diff --git a/Common/Server/Utils/CodeRepository/CodeRepository.ts b/Common/Server/Utils/CodeRepository/CodeRepository.ts index 2c39cc651a..6bb22f48a2 100644 --- a/Common/Server/Utils/CodeRepository/CodeRepository.ts +++ b/Common/Server/Utils/CodeRepository/CodeRepository.ts @@ -75,6 +75,15 @@ export default class CodeRepositoryUtil { @CaptureSpan() public static async pullChanges(data: { repoPath: string }): Promise { + // Add the repository to safe.directory to avoid "dubious ownership" errors + // This is needed when running in containers where the repo may be owned by a different user + await this.runGitCommand(data.repoPath, [ + "config", + "--global", + "--add", + "safe.directory", + path.resolve(data.repoPath), + ]); await this.runGitCommand(data.repoPath, ["pull"]); } diff --git a/opencode.json b/opencode.json new file mode 100644 index 0000000000..2ef5477fbe --- /dev/null +++ b/opencode.json @@ -0,0 +1,8 @@ +{ + "enabled_providers": [ + "anthropic" + ], + "model": "anthropic/claude-opus-4-5", + "small_model": "anthropic/claude-haiku-4-20250514", + "$schema": "https://opencode.ai/config.json" +} \ No newline at end of file