Sync engine: Take also in account the fact that the instruction can be IGNORE on both tree

This commit is contained in:
Olivier Goffart 2014-08-21 11:33:38 +02:00
parent 1cf956ec21
commit aabcf80774

View file

@ -265,7 +265,8 @@ int SyncEngine::treewalkFile( TREE_WALK_FILE *file, bool remote )
item._file = fileUtf8;
item._originalFile = item._file;
if (item._instruction == CSYNC_INSTRUCTION_NONE) {
if (item._instruction == CSYNC_INSTRUCTION_NONE
|| (item._instruction == CSYNC_INSTRUCTION_IGNORE && file->instruction != CSYNC_INSTRUCTION_NONE)) {
item._instruction = file->instruction;
item._modtime = file->modtime;
} else {