Skip to content

Commit bba792d

Browse files
committed
Add more debug
1 parent 77d6a5b commit bba792d

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/commands/fix/agent-fix.mts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -466,6 +466,7 @@ export async function agentFix(
466466
const unstagedCResult = await gitUnstagedModifiedFiles(cwd)
467467
const moddedFilepaths = unstagedCResult.ok
468468
? unstagedCResult.data.filter(filepath => {
469+
logger.log('filepath', filepath)
469470
const basename = path.basename(filepath)
470471
return (
471472
basename === 'package.json' ||

src/commands/fix/git.mts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ export async function gitUnstagedModifiedFiles(
379379
const rawRelPaths = changedFilesDetails.split('\n') ?? []
380380
return {
381381
ok: true,
382-
data: rawRelPaths.map(relPath => normalizePath(relPath)),
382+
data: rawRelPaths.map(p => normalizePath(p)),
383383
}
384384
} catch (e) {
385385
debugFn('error', 'caught: git diff --name-only failed')

0 commit comments

Comments
 (0)