andkirby / commithook

CommitHooks code validation and auto-formatting commit message.
GNU General Public License v3.0
7 stars 3 forks source link

No way to run `commithook test` in relative path #137

Closed andkirby closed 7 years ago

andkirby commented 7 years ago
$ cd project
$ cd some/dir
$ commithook test some/path

  [PreCommit\Exception]
  File 'D:/home/project\some/path/file.php' does not exist.

Target file:

$ pwd
D:/home/project/some/dir

$ ls D:/home/project/some/dir/some/path/file.php
D:/home/project/some/dir/some/path/file.php