Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F3334694
D25931.1743552984.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Advanced/Developer...
View Handle
View Hovercard
Size
873 B
Referenced Files
None
Subscribers
None
D25931.1743552984.diff
View Options
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,18 @@
$lib,
'https://we.phorge.it/T15282',
$lib_root));
- } else {
-
- // Otherwise show a generic error message
- phlog($e);
+ return;
}
+
+ // Second, detect if .git does not exist
+ $expected_error_msg_part = 'fatal: not a git repository (or any of the parent directories): .git';
+ $stderr = $e->getStderr();
+ if (strpos($stderr, $expected_error_msg_part) !== false) {
+ return;
+ }
+
+ // Otherwise show a generic error message
+ phlog($e);
}
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Apr 2, 00:16 (13 h, 18 m ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1266590
Default Alt Text
D25931.1743552984.diff (873 B)
Attached To
Mode
D25931: Config: Fix git errors when .git does not exist
Attached
Detach File
Event Timeline
Log In to Comment