From: Greg KH Date: Wed, 27 Apr 2005 03:52:06 GMT Subject: Re: [PATCH] Set AUTHOR_DATE in git-tools Message-ID: <20050427035206.GA27615@kroah.com> In-Reply-To: <20050426184442.GA20536@kroah.com> On Tue, Apr 26, 2005 at 11:44:42AM -0700, Greg KH wrote: > On Thu, Apr 21, 2005 at 05:32:16PM +1000, David Woodhouse wrote: > > Entirely untested. > > Doesn't work :( I take it back, it works just fine... My problem was that bk generates dates with a non-rfc compliant timezone string. And I was trying to apply patches exported from bk in plain text format (building a udev git tree...) The patch below to commit-tree.c fixes this issue, if anyone runs into this same issue (I wouldn't recommend it to be applied, as it's probably a one-off issue...) thanks, greg k-h -------------- Allow commit-tree to handle the bk date format. Signed-off-by: Greg Kroah-Hartman --- a/commit-tree.c 2005-04-25 22:08:49.000000000 -0700 +++ b/commit-tree.c 2005-04-26 20:46:37.000000000 -0700 @@ -204,6 +204,12 @@ else return; + /* Handle messed up bk dates */ + if (p[3] == ':') { + p[3] = p[4]; + p[4] = p[5]; + p[5] = p[6]; + } if (!isdigit(p[1]) || !isdigit(p[2]) || !isdigit(p[3]) || !isdigit(p[4])) return;