Skip to content

Commit

Permalink
Don't try to optimize-away the sending of the --delete option if
Browse files Browse the repository at this point in the history
--delete-after was specified (since we don't know what the protocol
version will be yet).
  • Loading branch information
Wayne Davison committed Sep 8, 2004
1 parent 3bb400c commit a20c989
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions options.c
Original file line number Diff line number Diff line change
Expand Up @@ -1013,8 +1013,7 @@ void server_options(char **args,int *argc)
if (am_sender) {
if (delete_excluded)
args[ac++] = "--delete-excluded";
else if (delete_mode
&& (!delete_after || protocol_version < 27))
else if (delete_mode)
args[ac++] = "--delete";

if (delete_after)
Expand Down

0 comments on commit a20c989

Please sign in to comment.