Add a base implementation of SHA-256 support
[gitweb.git] / t / t7519 / fsmonitor-watchman
index 5fe72cefaf89da7bc8d592fa264353ae992f1ed7..5514edcf68be8020ca94e8c51b9c9f2b3102bd09 100755 (executable)
@@ -29,17 +29,10 @@ if ($version == 1) {
            "Falling back to scanning...\n";
 }
 
-# Convert unix style paths to escaped Windows style paths when running
-# in Windows command prompt
-
-my $system = `uname -s`;
-$system =~ s/[\r\n]+//g;
 my $git_work_tree;
-
-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;
+if ($^O =~ 'msys' || $^O =~ 'cygwin') {
+       $git_work_tree = Win32::GetCwd();
+       $git_work_tree =~ tr/\\/\//;
 } else {
        require Cwd;
        $git_work_tree = Cwd::cwd();