]> khamidou — GitHub mirrors - arcanist.git/commitdiff
Move Arcanist machine config location on Windows
authorJakub Vrana <jakub@vrana.cz>
Sat, 20 Apr 2013 05:12:02 +0000 (22:12 -0700)
committerJakub Vrana <jakub@vrana.cz>
Sat, 20 Apr 2013 05:12:02 +0000 (22:12 -0700)
Test Plan:
  $ set # on Windows

Reviewers: epriestley, dschleimer

Reviewed By: epriestley

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

src/workflow/ArcanistBaseWorkflow.php

index d42e75216b12700b12715571ab18dbdd699175e3..3732a73e35806010a32685d5eb144dc0c53ed66c 100644 (file)
@@ -1165,11 +1165,9 @@ abstract class ArcanistBaseWorkflow extends Phobject {
 
   public static function getSystemArcConfigLocation() {
     if (phutil_is_windows()) {
-      // this is a horrible place to put this, but there doesn't seem to be a
-      // non-horrible place on Windows
       return Filesystem::resolvePath(
         'Phabricator/Arcanist/config',
-        getenv('PROGRAMFILES'));
+        getenv('ProgramData'));
     } else {
       return '/etc/arcconfig';
     }