I have a credential helper installed into /usr/local/bin which works just fine when using command-line
git commands. However, when using
brew tap or other commands, the helper is not triggered. It appears that the
PATH variable is being stripped out by homebrew before actually calling in to the underlying
The only credential helpers that are available during homebrew executions are those that are found in
git --exec-path. I can add my credential helper there and it works - but that doesn’t seem like an “appropriate” approach.
Is there some variable or flag or something that I can use to preserve the
PATH environment variable when running the underlying