Skip to content

Commit a6fcd39

Browse files
erik-inkapoolJamesHenry
authored andcommitted
fix(index): Use git directory parent for absolute file paths (#4)
1 parent 29b600e commit a6fcd39

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ export function main(
110110
* Read the modified file contents and resolve the relevant formatter.
111111
*/
112112
const modifiedFile = new ModifiedFile({
113-
fullPath: join(workingDirectory, filename),
113+
fullPath: join(gitDirectoryParent, filename),
114114
gitDirectoryParent,
115115
base: options.base,
116116
head: options.head,

0 commit comments

Comments
 (0)