Skip to content

Commit 3359013

Browse files
committed
output dir is this dir
1 parent 5701981 commit 3359013

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

evals/git-evals2/run-git-evals2.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,7 @@ export async function runGitEvals2(options: {
4343

4444
// Create logs directory with current date and time
4545
const date = new Date().toISOString().replace(/:/g, '-').slice(0, 16) // YYYY-MM-DDTHH-MM
46-
const outputDir = outputPath
47-
? path.dirname(outputPath)
48-
: path.join(__dirname, 'results')
46+
const outputDir = outputPath ? path.dirname(outputPath) : __dirname
4947
const logsDir = path.join(outputDir, 'logs', date)
5048
if (!fs.existsSync(logsDir)) {
5149
fs.mkdirSync(logsDir, { recursive: true })
@@ -244,9 +242,7 @@ export async function runGitEvals2(options: {
244242
}
245243
if (recommendations.length > 0) {
246244
console.log(`\nRecommendations:`)
247-
recommendations.forEach((r: string) =>
248-
console.log(` - ${r}`),
249-
)
245+
recommendations.forEach((r: string) => console.log(` - ${r}`))
250246
}
251247
} catch (error) {
252248
console.error(

0 commit comments

Comments
 (0)