mirror of
https://github.com/aljazceru/opencode.git
synced 2025-12-27 04:34:22 +01:00
do not list files if not git
This commit is contained in:
@@ -224,7 +224,7 @@ Platform: ${process.platform}
|
||||
Today's date: ${new Date().toISOString()}
|
||||
</env>
|
||||
<project>
|
||||
${await ListTool.execute({ path: app.path.cwd }, { sessionID: input.sessionID }).then((x) => x.output)}
|
||||
${app.git ? await ListTool.execute({ path: app.path.cwd }, { sessionID: input.sessionID }).then((x) => x.output) : ""}
|
||||
</project>
|
||||
`,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user