]> khamidou — GitHub mirrors - arcanist.git/commitdiff
Don't use absolute path in `ArcanistDiffUtils`
authorJakub Vrana <jakub@vrana.cz>
Thu, 14 Mar 2013 16:14:50 +0000 (09:14 -0700)
committerJakub Vrana <jakub@vrana.cz>
Thu, 14 Mar 2013 16:14:50 +0000 (09:14 -0700)
Summary: Improves Windows compatibility.

Test Plan: Ran failing unit test on Windows.

Reviewers: epriestley

Reviewed By: epriestley

CC: aran, Korvin
Differential Revision: https://secure.phabricator.com/D5344

src/difference/ArcanistDiffUtils.php

index 5e02c6f64b6327be2576c58959d16b28025b2cc4..ed8220d3d853072ab2c714e77649d17d1f29b627 100644 (file)
@@ -38,7 +38,7 @@ final class ArcanistDiffUtils {
     Filesystem::writeFile($file_new, (string)$new."\n");
 
     list($err, $stdout) = exec_manual(
-      '/usr/bin/diff %C -U %s %s %s',
+      'diff %C -U %s %s %s',
       $diff_options,
       $context_lines,
       $file_old,