aboutsummaryrefslogtreecommitdiff
path: root/templates/hooks--fsmonitor-watchman.sample
diff options
context:
space:
mode:
Diffstat (limited to 'templates/hooks--fsmonitor-watchman.sample')
-rwxr-xr-xtemplates/hooks--fsmonitor-watchman.sample3
1 files changed, 2 insertions, 1 deletions
diff --git a/templates/hooks--fsmonitor-watchman.sample b/templates/hooks--fsmonitor-watchman.sample
index 9a082f278..ba6d88c5f 100755
--- a/templates/hooks--fsmonitor-watchman.sample
+++ b/templates/hooks--fsmonitor-watchman.sample
@@ -40,7 +40,8 @@ if ($system =~ m/^MSYS_NT/ || $system =~ m/^MINGW/) {
$git_work_tree =~ s/[\r\n]+//g;
$git_work_tree =~ s,\\,/,g;
} else {
- $git_work_tree = $ENV{'PWD'};
+ require Cwd;
+ $git_work_tree = Cwd::cwd();
}
my $retry = 1;