mirror of
https://github.com/OneUptime/oneuptime.git
synced 2026-04-06 00:32:12 +02:00
fix: Command failed: git pull fatal: detected dubious o
This commit fixes an exception detected by OneUptime. Exception Type: 128 Exception ID: 57441092-d4b7-4ed1-b275-2426a5c9a906 Automatically generated by OneUptime AI Agent.
This commit is contained in:
@@ -75,6 +75,15 @@ export default class CodeRepositoryUtil {
|
||||
|
||||
@CaptureSpan()
|
||||
public static async pullChanges(data: { repoPath: string }): Promise<void> {
|
||||
// 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"]);
|
||||
}
|
||||
|
||||
|
||||
8
opencode.json
Normal file
8
opencode.json
Normal file
@@ -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"
|
||||
}
|
||||
Reference in New Issue
Block a user