X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=git-commit.sh;h=01c73bdd08e075d650e58664650bcd7fe1cd1551;hb=2855d58079cd56361879cc03f7c769409bb445e5;hp=bd3dc71cd6302190839c5d78310576fb709792f9;hpb=475443c8489d9167b944367d8ec8bfef77bee0a5;p=git.git diff --git a/git-commit.sh b/git-commit.sh index bd3dc71c..01c73bdd 100755 --- a/git-commit.sh +++ b/git-commit.sh @@ -549,8 +549,8 @@ fi >>"$GIT_DIR"/COMMIT_EDITMSG # Author if test '' != "$force_author" then - GIT_AUTHOR_NAME=`expr "$force_author" : '\(.*[^ ]\) *<.*'` && - GIT_AUTHOR_EMAIL=`expr "$force_author" : '.*\(<.*\)'` && + GIT_AUTHOR_NAME=`expr "z$force_author" : 'z\(.*[^ ]\) *<.*'` && + GIT_AUTHOR_EMAIL=`expr "z$force_author" : '.*\(<.*\)'` && test '' != "$GIT_AUTHOR_NAME" && test '' != "$GIT_AUTHOR_EMAIL" || die "malformatted --author parameter"