aboutsummaryrefslogtreecommitdiff
path: root/git-cvsserver.perl
diff options
context:
space:
mode:
authorMatthew Ogilvie <mmogilvi_git@miniinfo.net>2012-10-13 23:42:17 -0600
committerJunio C Hamano <gitster@pobox.com>2012-10-16 16:16:22 -0700
commitd8574ff209d9c68674bd6ba3bcee4a7cdb699e61 (patch)
tree934833809dae2372409580da1436acdec8115d06 /git-cvsserver.perl
parent196e48f4d0bac31f4a56b7dc4816f813cc17ad13 (diff)
downloadgit-d8574ff209d9c68674bd6ba3bcee4a7cdb699e61.tar.gz
git-d8574ff209d9c68674bd6ba3bcee4a7cdb699e61.tar.xz
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>
Diffstat (limited to 'git-cvsserver.perl')
-rwxr-xr-xgit-cvsserver.perl4
1 files changed, 4 insertions, 0 deletions
diff --git a/git-cvsserver.perl b/git-cvsserver.perl
index 595865c18..cc39b6bfd 100755
--- a/git-cvsserver.perl
+++ b/git-cvsserver.perl
@@ -1144,6 +1144,10 @@ sub req_update
if ( $meta->{filehash} eq "deleted" )
{
+ # TODO: If it has been modified in the sandbox, error out
+ # with the appropriate message, rather than deleting a modified
+ # file.
+
my ( $filepart, $dirpart ) = filenamesplit($filename,1);
$log->info("Removing '$filename' from working copy (no longer in the repo)");