git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] git-svn: fix localtime=true on non-glibc environments

From
EWEric Wong <normalperson@yhbt.net>
Date
Feb 25, 2015, 19:42 UTC
Message-ID
<20150225194213.GA32026@dcvr.yhbt.net>
In-Reply-To
<xmqqfv9tomzx.fsf@gitster.dls.corp.google.com>
Junio C Hamano <gitster@pobox.com> wrote:
Show 17 quoted lines
> Ryuichi Kokubo <ryu1kkb@gmail.com> writes:
> 
> > git svn uses POSIX::strftime('%s', $sec, $min, ...) to make unix epoch time.
> > But lowercase %s formatting character is a GNU extention. This causes problem
> > in git svn fetch --localtime on non-glibc systems, such as msys or cygwin.
> > Using Time::Local::timelocal($sec, $min, ...) fixes it.
> >
> > Signed-off-by: Ryuichi Kokubo <ryu1kkb@gmail.com>
> 
> Sounds sensible.
> 
> Because we already have "use Time::Local qw(...)" in perl/Git.pm
> that is used by git-svn, we know the platforms that are capable
> of running the current git-svn do have Time::Local available, so
> I do not have worries about new dependency, either.
> 
> Eric?
Looks good, thanks.  Signed-off and queued up.
Previous: Junio C Hamano
Message 3 of 3 in “git-svn: fix localtime=true on non-glibc environments”
  1. git-svn: fix localtime=true on non-glibc environmentsRyuichi Kokubo, Feb 25, 2015
  2. Junio C HamanoFeb 25, 2015
  3. Eric WongFeb 25, 2015

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.