Skip to content

Commit

Permalink
Merge pull request #3 from filipekiss/feature/environment_credentials
Browse files Browse the repository at this point in the history
Support Git Environment Credentials
  • Loading branch information
ChrisJStone authored Jul 4, 2023
2 parents 2ae8009 + 9ba559f commit c8f82ad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions git-flow-init
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,8 @@ file= use given config file
fi

if git_config_bool_exists "user.useconfigonly"; then
user_email=$(git config --get user.email)
user_name=$(git config --get user.name)
user_email=$(git config --get user.email || echo $GIT_AUTHOR_EMAIL)
user_name=$(git config --get user.name || echo $GIT_AUTHOR_NAME)
if [ -z "${user_email}" ] || [ -z "${user_name}" ]; then
die "Configuration useconfigonly is set but no name and/or email was set"
fi
Expand Down

0 comments on commit c8f82ad

Please sign in to comment.