git/export: make output pipable to /bin/mail
git/export *almost* produces output that can be emailed with upas using git/export $commit | mail maintainer@site.com but, the From: commit-id date line that git generates trips it up. Luckily, 'git am' doesn't seem to care much if that line is missing, so we can simply omit it with no issue.
This commit is contained in:
parent
e934530ee4
commit
7010ad85c5
1 changed files with 0 additions and 1 deletions
|
@ -41,7 +41,6 @@ for(c in $commits){
|
|||
if(test -d $cp/tree)
|
||||
bind $cp/tree b
|
||||
|
||||
echo From $c
|
||||
echo From: `{cat $cp/author}
|
||||
echo Date: `{date -um `{mtime $cp/author | awk '{print $1}'}}
|
||||
<$cp/msg awk '
|
||||
|
|
Loading…
Reference in a new issue