mirror of
https://github.com/tj/git-extras.git
synced 2026-09-10 07:26:17 -04:00
fall back to EMAIL when user.email is not configured
This commit is contained in:
parent
e93f206bad
commit
c80b4e773f
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue