From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Wong Subject: Re: [PATCH] git-svn: fix localtime=true on non-glibc environments Date: Wed, 25 Feb 2015 19:42:13 +0000 Message-ID: <20150225194213.GA32026@dcvr.yhbt.net> References: <1424880281-570-1-git-send-email-ryu1kkb@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Ryuichi Kokubo , git@vger.kernel.org To: Junio C Hamano X-From: git-owner@vger.kernel.org Wed Feb 25 20:42:21 2015 Return-path: Envelope-to: gcvg-git-2@plane.gmane.org Received: from vger.kernel.org ([209.132.180.67]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YQhqc-0000jx-VD for gcvg-git-2@plane.gmane.org; Wed, 25 Feb 2015 20:42:19 +0100 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753391AbbBYTmP (ORCPT ); Wed, 25 Feb 2015 14:42:15 -0500 Received: from dcvr.yhbt.net ([64.71.152.64]:45141 "EHLO dcvr.yhbt.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753384AbbBYTmO (ORCPT ); Wed, 25 Feb 2015 14:42:14 -0500 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id DC1B11F7A3; Wed, 25 Feb 2015 19:42:13 +0000 (UTC) Content-Disposition: inline In-Reply-To: Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Archived-At: Junio C Hamano wrote: > Ryuichi Kokubo 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 > > 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.