Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I saw this PHP warning on an Acquia cloud site:
Warning: file(/.git/HEAD) [function.file]: failed to open stream: No such file or directory in environment_indicator_environment_indicator_matched_indicator_alter()
The new git branch code is checking if git exists, but not confirming if there is a git repo, so it fails to find a $git_path and produces the above PHP warning.
Comment | File | Size | Author |
---|---|---|---|
#1 | no-git-repo.patch | 2.15 KB | JohnAlbin |
Comments
Comment #1
JohnAlbinNeeds review. I cleaned up some other code, but didn't actually test it, fyi.
Comment #2
JohnAlbinComment #4
e0ipsoI had to modify the code slightly, but it's already committed.
Thanks for contributing John!