[Patch] git-cvsimport: tiny fix
- From
- Elrond <elrond+kernel.org@samba-tng.org>
- Date
- May 10, 2006, 17:37 UTC
- Message-ID
- <20060510173703.GA10335@memak.tu-darmstadt.de>
git-cvsimport: Handle "Removed" from pserver
Sometimes the pserver says "Removed" instead of "Remove-entry".
Signed-off-by: Elrond <elrond+kernel.org@samba-tng.org> --- Hi,
At least the above happened to me on a repository I tried to convert. Without the patch, it just die("Unknown: Removed ...")s.
Elrond
--- git-cvsimport.perl +++ git-cvsimport.perl
@@ -350,7 +350,7 @@ sub _line { return $res; } elsif($line =~ s/^E //) { # print STDERR "S: $line\n"; - } elsif($line =~ /^Remove-entry /i) { + } elsif($line =~ /^(Remove-entry|Removed) /i) { $line = $self->readline(); # filename $line = $self->readline(); # OK chomp $line;