Closed bk2204 closed 5 years ago
The Git command to bump the PR fails. It appears that the
brew
intentionally filters all non-whitelisted environment variables. You could either configure this in your .gitconfig
or set a HOMEBREW_EMAIL
variable locally and submit a PR to assign it back to ENV["EMAIL"]
in dev-cmd/bump-formula-pr.rb
.
Note that #5706 was a similar pull request that added a check for the HOMEBREW_DISPLAY
variable.
brew
command and reproduced the problem with multiple formulae? If it's a problem with a single, official formula (not cask) please file this issue at Homebrew/homebrew-core: https://github.com/Homebrew/homebrew-core/issues/new/choose. If it's abrew cask
problem please file this issue at https://github.com/Homebrew/homebrew-cask/issues/new/choose. If it's a tap (e.g. Homebrew/homebrew-php) problem please file this issue at the tap.brew update
and can still reproduce the problem?brew doctor
, fixed all issues and can still reproduce the problem?brew config
andbrew doctor
and included their output with your issue?What you were trying to do (and why)
I was trying to bump a version of the
git-lfs
formula. The email address I use for Git is (as permitted by the documentation) specified in theEMAIL
environment variable, not in the Git configuration file. This lets me adjust the configuration in one place in my dotfiles instead of in multiple places.What happened (include command output)
The Git command to bump the PR fails. It appears that the
EMAIL
environment variable is not passed through to the Git command, preventing Git from committing.Command output
What you expected to happen
brew bump-formula-pr
passes through theEMAIL
environment variable (as well as other valid Git configuration environment variables) and honors the way the user chooses to configure Git, and the operation completes successfully.Step-by-step reproduction instructions (by running
brew
commands)brew config
brew doctor