Skip to content

Commit

Permalink
fix(plugins/git): make git config passing properly
Browse files Browse the repository at this point in the history
  • Loading branch information
dalisoft committed Mar 1, 2024
1 parent f693e48 commit e10a364
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions plugins/git.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ set -eu
export GPG_TTY=$(tty)

prepare() {
unset GIT_CONFIG

if [[ -n "${GIT_USERNAME-}" && -n "${GIT_EMAIL-}" ]]; then
git config --local user.email "$GIT_EMAIL"
git config --local user.name "$GIT_USERNAME"
Expand Down

0 comments on commit e10a364

Please sign in to comment.