@matheusbsbs / matheus-bagliano / commits / cfcbd3427e
Fork 0

cvsserver: fix checkouts with -d <somedir>

A recent Eclipse compat fix broke checkouts with -d. Fix it so that the server sends the correct module name instead of the destination directory name.

Martin Langhoff committed Mar 3, 2006 at 16:57 UTC cfcbd3427e67056a00ec832645b057eaf33888d9
1 file changed +5 -5
git-cvsserver.perl
+5 -5
@@ -576,9 +576,9 @@ sub req_co
576 # Eclipse seems to need the Clear-sticky command
577 # to prepare the 'Entries' file for the new directory.
578 print "Clear-sticky $checkout_path/\n";
579 - print $state->{CVSROOT} . "/$checkout_path/\n";
579 + print $state->{CVSROOT} . "/$module/\n";
580 print "Clear-static-directory $checkout_path/\n";
581 - print $state->{CVSROOT} . "/$checkout_path/\n";
581 + print $state->{CVSROOT} . "/$module/\n";
582
583 # instruct the client that we're checking out to $checkout_path
584 print "E cvs checkout: Updating $checkout_path\n";
@@ -609,11 +609,11 @@ sub req_co
609
610 # Eclipse seems to need the Clear-sticky command
611 # to prepare the 'Entries' file for the new directory.
612 - print "Clear-sticky $module/$git->{dir}\n";
612 + print "Clear-sticky $checkout_path/$git->{dir}\n";
613 print $state->{CVSROOT} . "/$module/$git->{dir}\n";
614 - print "Clear-static-directory $module/$git->{dir}\n";
614 + print "Clear-static-directory $checkout_path/$git->{dir}\n";
615 print $state->{CVSROOT} . "/$module/$git->{dir}\n";
616 - print "E cvs checkout: Updating /$module/$git->{dir}\n";
616 + print "E cvs checkout: Updating /$checkout_path/$git->{dir}\n";
617 $lastdir = $git->{dir};
618 $seendirs{$git->{dir}} = 1;
619 }