Skip to content

Commit

Permalink
Merge pull request #7026 from MikeMcQuaid/update-git-name-email
Browse files Browse the repository at this point in the history
update: allow setting Git name and email.
  • Loading branch information
MikeMcQuaid committed Feb 12, 2020
2 parents e7fd14d + 5995877 commit e20e366
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Library/Homebrew/cmd/update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit e20e366

Please sign in to comment.