From: Stephen R. van den Berg Date: Thu, 03 Apr 2008 10:07:39 GMT Subject: [PATCH] Fix whitespace Message-ID: <20080425234556.D12DF5460@aristoteles.cuci.nl> --- git-cvsimport.perl | 28 ++++++++++++++-------------- 1 files changed, 14 insertions(+), 14 deletions(-) diff --git a/git-cvsimport.perl b/git-cvsimport.perl index 73109d6..4af60b8 100755 --- a/git-cvsimport.perl +++ b/git-cvsimport.perl @@ -36,7 +36,7 @@ sub usage(;$) { my $msg = shift; print(STDERR "Error: $msg\n") if $msg; print STDERR <new(PeerHost => $proxyhost, PeerPort => $proxyport); die "Socket to $proxyhost: $!\n" unless defined $s; $s->write("CONNECT $serv:$port HTTP/1.1\r\nHost: $serv:$port\r\n\r\n") - or die "Write to $proxyhost: $!\n"; - $s->flush(); + or die "Write to $proxyhost: $!\n"; + $s->flush(); $rep = <$s>; @@ -591,11 +591,11 @@ unless (-d $git_dir) { $branch_date{$head} = $1; } close(H); - if (!exists $branch_date{$opt_o}) { + if (!exists $branch_date{$opt_o}) { die "Branch '$opt_o' does not exist.\n". "Either use the correct '-o branch' option,\n". "or import to a new repository.\n"; - } + } } -d $git_dir @@ -624,7 +624,7 @@ unless ($opt_P) { my @opt; @opt = split(/,/,$opt_p) if defined $opt_p; unshift @opt, '-z', $opt_z if defined $opt_z; - unshift @opt, '-q' unless defined $opt_v; + unshift @opt, '-q' unless defined $opt_v; unless (defined($opt_p) && $opt_p =~ m/--no-cvs-direct/) { push @opt, '--cvs-direct'; } @@ -718,7 +718,7 @@ sub commit { die "read-tree failed: $?\n" if $?; } } - $ENV{GIT_INDEX_FILE} = $index{$branch}; + $ENV{GIT_INDEX_FILE} = $index{$branch}; update_index(@old, @new); @old = @new = (); @@ -776,7 +776,7 @@ sub commit { or die "Cannot write branch $branch for update: $!\n"; if ($tag) { - my ($xtag) = $tag; + my ($xtag) = $tag; $xtag =~ s/\s+\*\*.*$//; # Remove stuff like ** INVALID ** and ** FUNKY ** $xtag =~ tr/_/\./ if ( $opt_u ); $xtag =~ s/[\/]/$opt_s/g; -- 1.5.5.1.83.ge77a4.dirty