Page MenuHomePhorge

D25931.1743492241.diff
No OneTemporary

D25931.1743492241.diff

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
@@ -367,11 +367,19 @@
$lib,
'https://we.phorge.it/T15282',
$lib_root));
- } else {
+ return;
+ }
- // Otherwise show a generic error message
- phlog($e);
+ // Second, detect if .git does not exist
+ // https://we.phorge.it/T16023
+ $expected_error_msg_part = 'fatal: not a git repository '.
+ '(or any of the parent directories): .git';
+ if (strpos($stderr, $expected_error_msg_part) !== false) {
+ return;
}
+
+ // Otherwise show a generic error message
+ phlog($e);
}
}

File Metadata

Mime Type
text/plain
Expires
Tue, Apr 1, 07:24 (1 d, 6 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1265264
Default Alt Text
D25931.1743492241.diff (886 B)

Event Timeline