Skip to content
Snippets Groups Projects
Unverified Commit 59958777 authored by Mike McQuaid's avatar Mike McQuaid
Browse files

update: allow setting Git name and email.

This is needed for `brew test-bot` when no global Git configuration is
present.
parent e7fd14dc
No related branches found
No related tags found
No related merge requests found
......@@ -383,6 +383,18 @@ EOS
export GIT_TERMINAL_PROMPT="0"
export GIT_SSH_COMMAND="ssh -oBatchMode=yes"
if [[ -n "$HOMEBREW_GIT_NAME" ]]
then
export GIT_AUTHOR_NAME="$HOMEBREW_GIT_NAME"
export GIT_COMMITTER_NAME="$HOMEBREW_GIT_NAME"
fi
if [[ -n "$HOMEBREW_GIT_EMAIL" ]]
then
export GIT_AUTHOR_EMAIL="$HOMEBREW_GIT_EMAIL"
export GIT_COMMITTER_EMAIL="$HOMEBREW_GIT_EMAIL"
fi
if [[ -z "$HOMEBREW_VERBOSE" ]]
then
QUIET_ARGS=(-q)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment