summaryrefslogtreecommitdiff
path: root/git-cvsimport.perl
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2006-05-23 20:59:44 (GMT)
committerJunio C Hamano <junkio@cox.net>2006-05-23 23:43:12 (GMT)
commit62bf0d962963794e9fbcdfdd43419b060d5d245f (patch)
treefd837254358262cfbdc37adc3d1fe3ae87c0bcc9 /git-cvsimport.perl
parent61efa5e300386978dd440716260c94e951a493b4 (diff)
downloadgit-62bf0d962963794e9fbcdfdd43419b060d5d245f.zip
git-62bf0d962963794e9fbcdfdd43419b060d5d245f.tar.gz
git-62bf0d962963794e9fbcdfdd43419b060d5d245f.tar.bz2
cvsimport: set up commit environment in perl instead of using env
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'git-cvsimport.perl')
-rwxr-xr-xgit-cvsimport.perl13
1 files changed, 6 insertions, 7 deletions
diff --git a/git-cvsimport.perl b/git-cvsimport.perl
index 60fc86a..af331d9 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