Skip to content

Commit

Permalink
git-cvsimport-script: more error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
Sven Verdoolaege committed Jul 4, 2005
1 parent 2853717 commit 1750113
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions git-cvsimport-script
Original file line number Diff line number Diff line change
Expand Up @@ -408,6 +408,7 @@ unless(-d $git_dir) {

# populate index
system('git-read-tree', $last_branch);
die "read-tree failed: $?\n" if $?;

# Get the last import timestamps
opendir(D,"$git_dir/refs/heads");
Expand Down Expand Up @@ -510,8 +511,8 @@ my $commit = sub {
print "Parent ID $parent\n" if $opt_v;
}

my $pr = IO::Pipe->new();
my $pw = IO::Pipe->new();
my $pr = IO::Pipe->new() or die "Cannot open pipe: $!\n";
my $pw = IO::Pipe->new() or die "Cannot open pipe: $!\n";
$pid = fork();
die "Fork: $!\n" unless defined $pid;
unless($pid) {
Expand Down

0 comments on commit 1750113

Please sign in to comment.