Skip to content

Commit

Permalink
Dont overwrite a file modified on both sides
Browse files Browse the repository at this point in the history
  • Loading branch information
nono committed Apr 24, 2017
1 parent 3de88a1 commit 8f79a44
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/merge.js
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,8 @@ class Merge {
if (doc.size == null) { doc.size = file.size }
if (doc.class == null) { doc.class = file.class }
if (doc.mime == null) { doc.mime = file.mime }
} else if (!isUpToDate(side, doc)) {
return this.resolveConflictAsync(side, doc)
}
if (sameFile(file, doc)) {
log.info({doc}, 'up to date')
Expand Down

0 comments on commit 8f79a44

Please sign in to comment.