Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
fsmonitor: read from getcwd(), not the PWD environment variable
[gitweb.git]
/
t
/
t7519
/
fsmonitor-watchman
diff --git
a/t/t7519/fsmonitor-watchman
b/t/t7519/fsmonitor-watchman
index a3e30bf54fc2f1bf4fbb3ce48fa13e33b2e6b346..5fe72cefaf89da7bc8d592fa264353ae992f1ed7 100755
(executable)
--- a/
t/t7519/fsmonitor-watchman
+++ b/
t/t7519/fsmonitor-watchman
@@
-41,7
+41,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;