Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
fsmonitor: MINGW support for watchman integration
[gitweb.git]
/
templates
/
hooks--fsmonitor-watchman.sample
diff --git
a/templates/hooks--fsmonitor-watchman.sample
b/templates/hooks--fsmonitor-watchman.sample
index 870a59d23791cbd51cc66ea49aca6e3d6b2e25ce..c68038ef0045f55bb5675f899d59b94f335d1284 100755
(executable)
--- a/
templates/hooks--fsmonitor-watchman.sample
+++ b/
templates/hooks--fsmonitor-watchman.sample
@@
-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;