mirror of
https://github.com/nextcloud/desktop.git
synced 2025-10-26 11:17:43 +00:00
Detect a NEW in the other tree, generate conflict condition.
This commit is contained in:
parent
40e2e5891f
commit
586cfa2aac
@ -146,6 +146,9 @@ static int _csync_merge_algorithm_visitor(void *obj, void *data) {
|
||||
other->destpath = c_strdup( cur->path );
|
||||
csync_vio_set_file_id( other->file_id, cur->file_id );
|
||||
cur->instruction = CSYNC_INSTRUCTION_NONE;
|
||||
} else if (other->instruction == CSYNC_INSTRUCTION_NEW) {
|
||||
CSYNC_LOG(CSYNC_LOG_PRIORITY_TRACE, "OOOO=> NEW detected in other tree!");
|
||||
cur->instruction = CSYNC_INSTRUCTION_CONFLICT;
|
||||
} else {
|
||||
cur->instruction = CSYNC_INSTRUCTION_NONE;
|
||||
other->instruction = CSYNC_INSTRUCTION_SYNC;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user