fsmonitor: MINGW support for watchman integration
[gitweb.git] / templates / hooks--fsmonitor-watchman.sample
index 870a59d23791cbd51cc66ea49aca6e3d6b2e25ce..c68038ef0045f55bb5675f899d59b94f335d1284 100755 (executable)
@@ -35,7 +35,7 @@ my $system = `uname -s`;
 $system =~ s/[\r\n]+//g;
 my $git_work_tree;
 
-if ($system =~ m/^MSYS_NT/) {
+if ($system =~ m/^MSYS_NT/ || $system =~ m/^MINGW/) {
        $git_work_tree = `cygpath -aw "\$PWD"`;
        $git_work_tree =~ s/[\r\n]+//g;
        $git_work_tree =~ s,\\,/,g;