Skip to content

Commit

Permalink
fix(index): Use git directory parent for absolute file paths (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
erik-inkapool authored and JamesHenry committed Feb 13, 2018
1 parent 29b600e commit a6fcd39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ export function main(
* Read the modified file contents and resolve the relevant formatter.
*/
const modifiedFile = new ModifiedFile({
fullPath: join(workingDirectory, filename),
fullPath: join(gitDirectoryParent, filename),
gitDirectoryParent,
base: options.base,
head: options.head,
Expand Down

0 comments on commit a6fcd39

Please sign in to comment.