summaryrefslogtreecommitdiff
path: root/Command/Sync.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2013-05-26 17:42:15 -0400
committerGravatar Joey Hess <joey@kitenet.net>2013-05-26 17:42:15 -0400
commit083dd734e07400a9653977ffe2afb95dc52e4646 (patch)
treebe301043d525a34d646d0bc5fe25acf8a1895367 /Command/Sync.hs
parent092fba6499ea4dfb7c30c32cec36070a1072023b (diff)
sync: Fix double merge conflict resolution handling.
Ie, when there'a a conflicted merge we may get foo.variant-xxxx created in a merge. If a second merge conflict occurs on that new file, it was not falling back to putting in the whole key (which should stop the merge conflicts happening for good, but is ugly).
Diffstat (limited to 'Command/Sync.hs')
-rw-r--r--Command/Sync.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Command/Sync.hs b/Command/Sync.hs
index d6f1022cc..9923d6dfd 100644
--- a/Command/Sync.hs
+++ b/Command/Sync.hs
@@ -302,7 +302,7 @@ mergeFile file key
| otherwise = go $ shortHash $ key2file key
where
varmarker = ".variant-"
- doubleconflict = varmarker `isSuffixOf` (dropExtension file)
+ doubleconflict = varmarker `isInfixOf` file
go v = takeDirectory file
</> dropExtension (takeFileName file)
++ varmarker ++ v