Skip to content

Commit d8574ff

Browse files
Matthew Ogilviegitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 196e48f commit d8574ff

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

git-cvsserver.perl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1144,6 +1144,10 @@ sub req_update
11441144

11451145
if ( $meta->{filehash} eq "deleted" )
11461146
{
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+
11471151
my ( $filepart, $dirpart ) = filenamesplit($filename,1);
11481152

11491153
$log->info("Removing '$filename' from working copy (no longer in the repo)");

0 commit comments

Comments
 (0)