RE: pretty format can't work on cron job

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> -----Original Message-----
> From: Thomas Rast [mailto:trast@xxxxxxxxxxxxxxx]
> Sent: 2010年11月8日 3:19
> To: Chen WANG
> Cc: 'Jeff King'; Chen Wang (QA-CN); j.sixt@xxxxxxxxxxxxx; git@xxxxxxxxxxxx
org
> Subject: Re: pretty format can't work on cron job
> 
> 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.
> 

Ignore it please. I put a lot rubbish here to try to figure out the issue.

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

Absolutely right.
I was keeping figure out the difference between manual run and cron job for
git.
But seems my administrator installed a 1.5.5.4 for global, but my local bin
has a higher version of git which support %aN.
Thanks guys. Thanks Thomas.

> --
> Thomas Rast
> trast@{inf,student}.ethz.ch

--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]