Skip to content

Commit

Permalink
Support Git Environment Credentials
Browse files Browse the repository at this point in the history
  • Loading branch information
filipekiss committed Mar 27, 2019
1 parent 6410769 commit 9ba559f
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 9ba559f

Please sign in to comment.