mirror of
https://github.com/tj/git-extras.git
synced 2026-09-10 07:26:17 -04:00
Merge pull request #626 from jldugger/jldugger/email-fallback
fall back to EMAIL when user.email is not configured
This commit is contained in:
commit
9c1feecca5
|
|
@ -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