git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* pretty format can't work on cron job
@ 2010-11-05  8:29 chen_wang
  2010-11-05  8:37 ` Johannes Sixt
  0 siblings, 1 reply; 7+ messages in thread
From: chen_wang @ 2010-11-05  8:29 UTC (permalink / raw)
  To: git; +Cc: ellre923


For the command: git log 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2.. -M --date=short --pretty=format:"Author: %aN <%ae>; Date: %ad" --shortstat --dirstat --no-merges

I run it on shell by manual can create correct format of output, such as:
-------------------------------------------------
Author: Amit Shah <amit.shah@redhat.com>; Date: 2010-10-20
 1 files changed, 14 insertions(+), 3 deletions(-)
 100.0% drivers/char/
-------------------------------------------------

But when I put that command on cron job, even I run “. /etc/profile” and “. ~/.bash_profile” first, I can’t get correct format of output.
-------------------------------------------------
Author: %aN <amit.shah@redhat.com>; Date: Wed Oct 20 13:45:43 2010 +1030
 100.0% drivers/char/
 1 files changed, 14 insertions(+), 3 deletions(-)
-------------------------------------------------

My git version is git-1.7.3.2.

Does anyone know the reason?

Thanks
Chen

TREND MICRO EMAIL NOTICE
The information contained in this email and any attachments is confidential and may be subject to copyright or other intellectual property protection. If you are not the intended recipient, you are not authorized to use or disclose this information, and we request that you notify us by reply mail or telephone and delete the original message from your mail system.

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2010-11-08  2:31 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2010-11-08  2:30           ` Chen WANG

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).