On the Phorge of WMGMC, we use a git repository for managing our fork but copy files into a OCI container image before deploying. Thus, .git is not available in our production environment.
However, /config/ generates errors when .git is not available:
Command failed with error #128! COMMAND git remote -v STDOUT (empty) STDERR fatal: not a git repository (or any of the parent directories): .git Stack trace: ExecFuture::raiseResultError called at [/opt/arcanist/src/future/exec/ExecFuture.php:341] ExecFuture::resolvex called at [/opt/phorge/src/applications/config/controller/PhabricatorConfigConsoleController.php:193] phlog called at [/opt/phorge/src/applications/config/controller/PhabricatorConfigConsoleController.php:373] PhabricatorConfigConsoleController::logGitErrorWithPotentialTips called at [/opt/phorge/src/applications/config/controller/PhabricatorConfigConsoleController.php:195] PhabricatorConfigConsoleController::loadVersions called at [/opt/phorge/src/applications/config/controller/PhabricatorConfigConsoleController.php:83] PhabricatorConfigConsoleController::newLibraryVersionTable called at [/opt/phorge/src/applications/config/controller/PhabricatorConfigConsoleController.php:63] PhabricatorConfigConsoleController::handleRequest called at [/opt/phorge/src/aphront/configuration/AphrontApplicationConfiguration.php:284] AphrontApplicationConfiguration::processRequest called at [/opt/phorge/src/aphront/configuration/AphrontApplicationConfiguration.php:203] AphrontApplicationConfiguration::runHTTPRequest called at [/opt/phorge/webroot/index.php:35]