Skip to content

Commit

Permalink
Fix user/email config
Browse files Browse the repository at this point in the history
The variables were swapped for some reason. Fixed now.
  • Loading branch information
aormsby committed Jan 18, 2021
1 parent c86999d commit ac3bad7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions upstream-sync.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ config_git() {
ORIG_EMAIL=$(git config --global --get --default="null" user.email)
ORIG_PULL_CONFIG=$(git config --global --get --default="null" pull.rebase)

if [ "${INPUT_GIT_EMAIL}" != "null" ]; then
git config --global user.name "${INPUT_GIT_EMAIL}"
if [ "${INPUT_GIT_USER}" != "null" ]; then
git config --global user.name "${INPUT_GIT_USER}"
fi

if [ "${INPUT_GIT_USER}" != "null" ]; then
git config --global user.email "${INPUT_GIT_USER}"
if [ "${INPUT_GIT_EMAIL}" != "null" ]; then
git config --global user.email "${INPUT_GIT_EMAIL}"
fi

if [ "${INPUT_GIT_PULL_REBASE_CONFIG}" != "null" ]; then
Expand Down

0 comments on commit ac3bad7

Please sign in to comment.