summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2021-07-04 20:18:37 +0000
committerOri Bernstein <ori@eigenstate.org>2021-07-04 20:18:37 +0000
commit7010ad85c5a5648ea86d4f17a6b1547c10823938 (patch)
tree48df5435a895fef378e669513e31f32542c2146f
parente934530ee4512f033952e4efa80a80058607b741 (diff)
downloadplan9front-7010ad85c5a5648ea86d4f17a6b1547c10823938.tar.xz
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.
-rwxr-xr-xsys/src/cmd/git/export1
1 files changed, 0 insertions, 1 deletions
diff --git a/sys/src/cmd/git/export b/sys/src/cmd/git/export
index 145e62551..1c062b96f 100755
--- a/sys/src/cmd/git/export
+++ b/sys/src/cmd/git/export
@@ -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 '