Skip to content

Commit cb52d9a

Browse files
flichtenheldJunio C Hamano
authored andcommitted
cvsserver: Fix handling of diappeared files on update
Only send a modified response if the client sent a "Modified" entry. This fixes the case where the file was locally deleted on the client without being removed from CVS. In this case the client will only have sent the Entry for the file but nothing else. Signed-off-by: Frank Lichtenheld <frank@lichtenheld.de> Acked-by: Martin Langhoff <martin@catalyst.net.nz> Acked-by: Daniel Barkalow <barkalow@iabervon.org> Signed-off-by: Junio C Hamano <junkio@cox.net>
1 parent 8eb2d0b commit cb52d9a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

git-cvsserver.perl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -843,6 +843,7 @@ sub req_update
843843
if ( defined ( $wrev )
844844
and defined($meta->{revision})
845845
and $wrev == $meta->{revision}
846+
and defined($state->{entries}{$filename}{modified_hash})
846847
and not exists ( $state->{opt}{C} ) )
847848
{
848849
$log->info("Tell the client the file is modified");

0 commit comments

Comments
 (0)