summaryrefslogtreecommitdiff
path: root/diff.c
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2012-11-04 07:25:36 -0500
committerJeff King <peff@peff.net>2012-11-04 08:02:41 -0500
commitc2b3af0537e0b2c7624913b0f26191e992beb12c (patch)
tree668259ecf1719a81c6f18f6027fd711b0c2e42ce /diff.c
parentfb2c984148a344781833b25361154619230d9dd4 (diff)
downloadgit-c2b3af0537e0b2c7624913b0f26191e992beb12c.tar.gz
cvsimport: work around perl tzset issue
On many platforms, the first invocation of localtime_r will check $TZ in the environment, but subsequent invocations will use a cached value. That means that setting $ENV{TZ} in the middle of the program may or may not have an effect on later calls to localtime. Perl 5.10.0 and later handles this automatically for us, but we try to remain portable back to 5.8. Work around it by calling tzset ourselves.
Diffstat (limited to 'diff.c')
0 files changed, 0 insertions, 0 deletions