fall back to EMAIL when user.email is not configured

This commit is contained in:
Justin Dugger 2017-02-01 20:36:34 -08:00
parent e93f206bad
commit c80b4e773f

View file

@ -31,6 +31,11 @@ EOF
# user
user=$(git config user.email)
if [ -z "$user" ]; then
user="$EMAIL"
fi
test -z "$user" && abort "git config user.email required"
# branch