diff --git a/src/applications/config/controller/PhabricatorConfigConsoleController.php b/src/applications/config/controller/PhabricatorConfigConsoleController.php
--- a/src/applications/config/controller/PhabricatorConfigConsoleController.php
+++ b/src/applications/config/controller/PhabricatorConfigConsoleController.php
@@ -152,6 +152,9 @@
 
     foreach ($specs as $lib) {
       $root = dirname(phutil_get_library_root($lib));
+      if (!Filesystem::pathExists($root.'/.git')) {
+        continue;
+      }
 
       $log_command = csprintf(
         'git log --format=%s -n 1 --',
@@ -187,7 +190,10 @@
     $upstream_futures = array();
     $lib_upstreams = array();
     foreach ($specs as $lib) {
-      $remote_future = $remote_futures[$lib];
+      $remote_future = $remote_futures[$lib] ?? null;
+      if ($remote_future === null) {
+        continue;
+      }
 
       try {
         list($stdout, $err) = $remote_future->resolvex();
@@ -258,7 +264,17 @@
     }
 
     $results = array();
-    foreach ($log_futures as $lib => $future) {
+    foreach ($specs as $lib) {
+      $future = $log_futures[$lib] ?? null;
+      if ($future === null) {
+        $results[$lib] = array(
+          'hash' => null,
+          'epoch' => null,
+          'upstream' => null,
+          'branchpoint' => null,
+        );
+        continue;
+      }
       try {
         list($stdout, $err) = $future->resolvex();
         list($hash, $epoch) = explode(' ', $stdout);