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

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>

Frank Lichtenheld committed Apr 11, 2007 at 22:38 UTC cb52d9a1fbb2298d73bfa5dc86a0155cc462ecf2
1 file changed +1
git-cvsserver.perl
+1
@@ -843,6 +843,7 @@ sub req_update
843 if ( defined ( $wrev )
844 and defined($meta->{revision})
845 and $wrev == $meta->{revision}
846 + and defined($state->{entries}{$filename}{modified_hash})
847 and not exists ( $state->{opt}{C} ) )
848 {
849 $log->info("Tell the client the file is modified");