mirror of
https://github.com/git/git
synced 2024-10-30 04:01:21 +00:00
git-am: catch missing author date early.
Even though commit-tree would default to the current time if the incoming e-mail message somehow did not record the timestamp, it is safer to catch the breakage sooner. Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
ada59fcd32
commit
6e9e0327b7
1 changed files with 2 additions and 2 deletions
|
@ -307,9 +307,9 @@ do
|
|||
GIT_AUTHOR_EMAIL="$(sed -n '/^Email/ s/Email: //p' "$dotest/info")"
|
||||
GIT_AUTHOR_DATE="$(sed -n '/^Date/ s/Date: //p' "$dotest/info")"
|
||||
|
||||
if test -z "$GIT_AUTHOR_EMAIL"
|
||||
if test -z "$GIT_AUTHOR_EMAIL" || test -z "$GIT_AUTHOR_DATE"
|
||||
then
|
||||
echo "Patch does not have a valid e-mail address."
|
||||
echo "Patch does not have valid authorship information."
|
||||
stop_here $this
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in a new issue