From: Thomas Rast <trast@student.ethz.ch>
To: Chen WANG <ellre923@gmail.com>
Cc: 'Jeff King' <peff@peff.net>,
"Chen Wang (QA-CN)" <chen_wang@trendmicro.com.cn>,
<j.sixt@viscovery.net>, <git@vger.kernel.org>
Subject: Re: pretty format can't work on cron job
Date: Sun, 7 Nov 2010 20:18:31 +0100 [thread overview]
Message-ID: <201011072018.31740.trast@student.ethz.ch> (raw)
In-Reply-To: <01c101cb7d6c$fd053cf0$f70fb6d0$@com>
Chen WANG wrote:
> $ cat /home/wangchen/kps_update
> #!/bin/bash
> su wangchen -
What is this 'su' supposed to do? AFAICS you would have to run
another script with 'su' if you really want to change user.
> git log 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2.. -M --date=short --pretty=format:"Author: %aN <%ae>; Date: %ad" --shortstat --dirstat --no-merges >/tmp/ChangeLog-all
[%aN does not expand to anything within the cron runs]
Also, what git version(s) do you have installed? %aN appeared in
1.5.6.4 and 1.6.0, so it is entirely possible that the $PATH within
your cronjob runs an older version which fails to expand it to
anything.
--
Thomas Rast
trast@{inf,student}.ethz.ch
next prev parent reply other threads:[~2010-11-07 19:18 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-11-05 8:29 pretty format can't work on cron job chen_wang
2010-11-05 8:37 ` Johannes Sixt
2010-11-05 8:47 ` chen_wang
2010-11-05 13:14 ` Jeff King
2010-11-06 4:42 ` Chen WANG
2010-11-07 19:18 ` Thomas Rast [this message]
2010-11-08 2:30 ` Chen WANG
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=201011072018.31740.trast@student.ethz.ch \
--to=trast@student.ethz.ch \
--cc=chen_wang@trendmicro.com.cn \
--cc=ellre923@gmail.com \
--cc=git@vger.kernel.org \
--cc=j.sixt@viscovery.net \
--cc=peff@peff.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).