cvsserver update: comment about how we shouldn't remove a user-modified file

Instead of a comment, we should really add test cases and actually fix it. Signed-off-by: Matthew Ogilvie <mmogilvi_git@miniinfo.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Matthew Ogilvie committed Oct 13, 2012 at 23:42 UTC d8574ff209d9c68674bd6ba3bcee4a7cdb699e61
1 file changed +4
git-cvsserver.perl
+4
@@ -1144,6 +1144,10 @@ sub req_update
1144
1145 if ( $meta->{filehash} eq "deleted" )
1146 {
1147 + # TODO: If it has been modified in the sandbox, error out
1148 + # with the appropriate message, rather than deleting a modified
1149 + # file.
1150 +
1151 my ( $filepart, $dirpart ) = filenamesplit($filename,1);
1152
1153 $log->info("Removing '$filename' from working copy (no longer in the repo)");