diff options
author | Matthew Ogilvie <mmogilvi_git@miniinfo.net> | 2012-10-13 23:42:17 -0600 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2012-10-16 16:16:22 -0700 |
commit | d8574ff209d9c68674bd6ba3bcee4a7cdb699e61 (patch) | |
tree | 934833809dae2372409580da1436acdec8115d06 /git-cvsserver.perl | |
parent | 196e48f4d0bac31f4a56b7dc4816f813cc17ad13 (diff) | |
download | git-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-x | git-cvsserver.perl | 4 |
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)"); |