Merge branch 'svn-maint-fixes' into svn-fixes
* svn-maint-fixes: Git::SVN::*: avoid premature FileHandle closure git-svn: fix localtime=true on non-glibc environments
This commit is contained in:
@ -12,6 +12,7 @@ use File::Path qw/mkpath/;
|
||||
use IPC::Open3;
|
||||
use Memoize; # core since 5.8.0, Jul 2002
|
||||
use POSIX qw(:signal_h);
|
||||
use Time::Local;
|
||||
|
||||
use Git qw(
|
||||
command
|
||||
@ -1326,7 +1327,7 @@ sub parse_svn_date {
|
||||
$ENV{TZ} = 'UTC';
|
||||
|
||||
my $epoch_in_UTC =
|
||||
POSIX::strftime('%s', $S, $M, $H, $d, $m - 1, $Y - 1900);
|
||||
Time::Local::timelocal($S, $M, $H, $d, $m - 1, $Y - 1900);
|
||||
|
||||
# Determine our local timezone (including DST) at the
|
||||
# time of $epoch_in_UTC. $Git::SVN::Log::TZ stored the
|
||||
|
||||
Reference in New Issue
Block a user