projects
/
git.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
make clean: remove dist-doc targets.
[git.git]
/
git-cvsimport.perl
diff --git
a/git-cvsimport.perl
b/git-cvsimport.perl
index
41ee9a6
..
76f6246
100755
(executable)
--- a/
git-cvsimport.perl
+++ b/
git-cvsimport.perl
@@
-23,7
+23,7
@@
use File::Basename qw(basename dirname);
use Time::Local;
use IO::Socket;
use IO::Pipe;
use Time::Local;
use IO::Socket;
use IO::Pipe;
-use POSIX qw(strftime dup2
:errno_h
);
+use POSIX qw(strftime dup2
ENOENT
);
use IPC::Open2;
$SIG{'PIPE'}="IGNORE";
use IPC::Open2;
$SIG{'PIPE'}="IGNORE";
@@
-371,7
+371,7
@@
sub file {
}
sub _fetchfile {
my ($self, $fh, $cnt) = @_;
}
sub _fetchfile {
my ($self, $fh, $cnt) = @_;
- my $res;
+ my $res
= 0
;
my $bufsize = 1024 * 1024;
while($cnt) {
if ($bufsize > $cnt) {
my $bufsize = 1024 * 1024;
while($cnt) {
if ($bufsize > $cnt) {
@@
-618,14
+618,13
@@
sub commit {
}
my $commit_date = strftime("+0000 %Y-%m-%d %H:%M:%S",gmtime($date));
}
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,
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
'git-commit-tree', $tree, @commit_args);
# compatibility with git2cvs