Skip to content

Commit

Permalink
cvsserver: fix checkouts with -d <somedir>
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Martin Langhoff committed Mar 3, 2006
1 parent 5398fed commit cfcbd34
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions git-cvsserver.perl
Original file line number Diff line number Diff line change
Expand Up @@ -576,9 +576,9 @@ sub req_co
# Eclipse seems to need the Clear-sticky command
# to prepare the 'Entries' file for the new directory.
print "Clear-sticky $checkout_path/\n";
print $state->{CVSROOT} . "/$checkout_path/\n";
print $state->{CVSROOT} . "/$module/\n";
print "Clear-static-directory $checkout_path/\n";
print $state->{CVSROOT} . "/$checkout_path/\n";
print $state->{CVSROOT} . "/$module/\n";

# instruct the client that we're checking out to $checkout_path
print "E cvs checkout: Updating $checkout_path\n";
Expand Down Expand Up @@ -609,11 +609,11 @@ sub req_co

# Eclipse seems to need the Clear-sticky command
# to prepare the 'Entries' file for the new directory.
print "Clear-sticky $module/$git->{dir}\n";
print "Clear-sticky $checkout_path/$git->{dir}\n";
print $state->{CVSROOT} . "/$module/$git->{dir}\n";
print "Clear-static-directory $module/$git->{dir}\n";
print "Clear-static-directory $checkout_path/$git->{dir}\n";
print $state->{CVSROOT} . "/$module/$git->{dir}\n";
print "E cvs checkout: Updating /$module/$git->{dir}\n";
print "E cvs checkout: Updating /$checkout_path/$git->{dir}\n";
$lastdir = $git->{dir};
$seendirs{$git->{dir}} = 1;
}
Expand Down

0 comments on commit cfcbd34

Please sign in to comment.