* Re: git-am: catch missing author date early.
@ 2007-12-07 2:34 Len Brown
2007-12-07 6:06 ` Junio C Hamano
0 siblings, 1 reply; 2+ messages in thread
From: Len Brown @ 2007-12-07 2:34 UTC (permalink / raw)
To: git
This change made git-am more difficult to use.
I tend to check-in a fair number of patches that didn't come from an e-mail message.
In the past, I slap a Subject: and a From: on the top of the commit message
and off I go.
With this change git-am fails b/c I haven't also conjured up the time,
when in the past it figured out what time it was for me.
thanks,
-Len
commit 6e9e0327b7d7f384d8a223b4bc40330ef3e7fb61
Author: Junio C Hamano <gitster@pobox.com>
Date: Sun Dec 2 14:38:40 2007 -0800
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>
diff --git a/git-am.sh b/git-am.sh
index 76c1c84..2e40708 100755
--- a/git-am.sh
+++ b/git-am.sh
@@ -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
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: git-am: catch missing author date early.
2007-12-07 2:34 git-am: catch missing author date early Len Brown
@ 2007-12-07 6:06 ` Junio C Hamano
0 siblings, 0 replies; 2+ messages in thread
From: Junio C Hamano @ 2007-12-07 6:06 UTC (permalink / raw)
To: Len Brown; +Cc: git
Sorry, and thanks for the report.
Jens complained the same yesterday and the change was reverted.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-12-07 6:11 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-12-07 2:34 git-am: catch missing author date early Len Brown
2007-12-07 6:06 ` Junio C Hamano
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).