Skip to content

Commit 5ec514b

Browse files
Steven WalterEric Wong
authored andcommitted
git-svn.perl: perform deletions before anything else
If we delete a file and recreate it as a directory in a single commit, we have to tell the server about the deletion first or else we'll get "RA layer request failed: Server sent unexpected return value (405 Method Not Allowed) in response to MKCOL request" Signed-off-by: Steven Walter <stevenrwalter@gmail.com> Acked-by: Eric Wong <normalperson@yhbt.net>
1 parent 6aa17fc commit 5ec514b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

git-svn.perl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5381,7 +5381,7 @@ sub DESTROY {
53815381
sub apply_diff {
53825382
my ($self) = @_;
53835383
my $mods = $self->{mods};
5384-
my %o = ( D => 1, R => 0, C => -1, A => 3, M => 3, T => 3 );
5384+
my %o = ( D => 0, C => 1, R => 2, A => 3, M => 4, T => 5 );
53855385
foreach my $m (sort { $o{$a->{chg}} <=> $o{$b->{chg}} } @$mods) {
53865386
my $f = $m->{chg};
53875387
if (defined $o{$f}) {

0 commit comments

Comments
 (0)