From: Frank Lichtenheld Date: Wed, 11 Apr 2007 20:38:19 +0000 (+0200) Subject: cvsserver: Fix handling of diappeared files on update X-Git-Tag: v1.5.1.1~1 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=cb52d9a1fbb2298d73bfa5dc86a0155cc462ecf2;p=git.git 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 Acked-by: Martin Langhoff Acked-by: Daniel Barkalow Signed-off-by: Junio C Hamano --- diff --git a/git-cvsserver.perl b/git-cvsserver.perl index 68aa75255..25816c5a2 100755 --- a/git-cvsserver.perl +++ b/git-cvsserver.perl @@ -843,6 +843,7 @@ sub req_update if ( defined ( $wrev ) and defined($meta->{revision}) and $wrev == $meta->{revision} + and defined($state->{entries}{$filename}{modified_hash}) and not exists ( $state->{opt}{C} ) ) { $log->info("Tell the client the file is modified");