diff options
author | Junio C Hamano <junkio@cox.net> | 2006-05-24 03:32:31 -0700 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-05-24 03:32:31 -0700 |
commit | f54c76f1616cf470ce4bce8eff749272e1c6548c (patch) | |
tree | c3dd58a8e23b2028e5c3defde2eae14e42f1e0ca /git-cvsimport.perl | |
parent | Merge branch 'master' into next (diff) | |
parent | --summary output should print immediately after stats. (diff) | |
download | tgif-f54c76f1616cf470ce4bce8eff749272e1c6548c.tar.xz |
Merge branch 'master' into next
* master:
--summary output should print immediately after stats.
git-svn: ignore expansion of svn:keywords
git-svn: starting a 1.1.0-pre development version
cvsimport: set up commit environment in perl instead of using env
Diffstat (limited to 'git-cvsimport.perl')
-rwxr-xr-x | git-cvsimport.perl | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/git-cvsimport.perl b/git-cvsimport.perl index 60fc86a5be..af331d9c43 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 |