ezura / spell-checker-for-swift

This command line tool can check spelling and show proposed correction.
MIT License
74 stars 9 forks source link

Failed to process files with -diff flag when the command is running not from git root directory #23

Closed RustamG closed 3 years ago

RustamG commented 3 years ago

I have an xCode project which is located in the nested folder - not in the root directory of a git repository. I added a Build Phase per the instruction from README.md with -diff flag. When I try to build the project, typokana is unable to open the files returned from git diff command. Because the typokana is run from that nested directory (where my xCode project is located). But Git diff returns files relative to the git root directory.

I'm making a PR to resolve it.