Issue Write-up: PHP getcwd() reports /usr/local/emhttp when run from CLI, causing Git “Not a repository” error.
The Symptom When executing a PHP script from the command line interface (CLI) within a specific directory (e.g., a Git repository directory), the getcwd() function reports a different, unexpected directory…
