fsmonitor: MINGW support for watchman integration
commitdcdb71f1599734ae46870d3eca11e2093bbd7520
authorBen Peart <benpeart@microsoft.com>
Wed, 4 Oct 2017 02:09:50 +0000 (4 11:09 +0900)
committerJunio C Hamano <gitster@pobox.com>
Wed, 4 Oct 2017 02:10:24 +0000 (4 11:10 +0900)
tree928ebff2c60f2dbf2f5eb99f03df8cbe86da099e
parent14527b30022190c6e7e8cd7f7dbef4195ebeedc2
fsmonitor: MINGW support for watchman integration

Instead of just taking $ENV{'PWD'}, use the same logic that converts
PWD to $git_work_tree on MSYS_NT in the watchman integration hook
script also on MINGW.

Signed-off-by: Ben Peart <benpeart@microsoft.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t7519/fsmonitor-watchman
templates/hooks--fsmonitor-watchman.sample