Skip to content

Commit

Permalink
fix(sync): use empty as base when merge
Browse files Browse the repository at this point in the history
  • Loading branch information
andelf authored and tiensonqin committed Jul 14, 2023
1 parent eb2db96 commit 56f5227
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/frontend/fs/sync.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -1655,7 +1655,7 @@
(p/catch (fn [_] nil)))
current-content (or current-content "")
incoming-content (fs/read-file repo-dir incoming-file)
merged-content (diff-merge/three-way-merge current-content current-content incoming-content format)]
merged-content (diff-merge/three-way-merge "" incoming-content current-content format)]
(if (= incoming-content merged-content)
(p/do!
(fs/copy! repo
Expand Down

0 comments on commit 56f5227

Please sign in to comment.