From 62bf0d962963794e9fbcdfdd43419b060d5d245f Mon Sep 17 00:00:00 2001 From: Jeff King Date: Tue, 23 May 2006 16:59:44 -0400 Subject: [PATCH] cvsimport: set up commit environment in perl instead of using env Signed-off-by: Junio C Hamano --- git-cvsimport.perl | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/git-cvsimport.perl b/git-cvsimport.perl index 60fc86a5b..af331d9c4 100755 --- a/git-cvsimport.perl +++ b/git-cvsimport.perl @@ -618,14 +618,13 @@ sub commit { } my $commit_date = strftime("+0000 %Y-%m-%d %H:%M:%S",gmtime($date)); + $ENV{GIT_AUTHOR_NAME} = $author_name; + $ENV{GIT_AUTHOR_EMAIL} = $author_email; + $ENV{GIT_AUTHOR_DATE} = $commit_date; + $ENV{GIT_COMMITTER_NAME} = $author_name; + $ENV{GIT_COMMITTER_EMAIL} = $author_email; + $ENV{GIT_COMMITTER_DATE} = $commit_date; my $pid = open2(my $commit_read, my $commit_write, - 'env', - "GIT_AUTHOR_NAME=$author_name", - "GIT_AUTHOR_EMAIL=$author_email", - "GIT_AUTHOR_DATE=$commit_date", - "GIT_COMMITTER_NAME=$author_name", - "GIT_COMMITTER_EMAIL=$author_email", - "GIT_COMMITTER_DATE=$commit_date", 'git-commit-tree', $tree, @commit_args); # compatibility with git2cvs -- 2.26.2