summaryrefslogtreecommitdiff
path: root/Test.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2014-07-11 16:56:19 -0400
committerGravatar Joey Hess <joey@kitenet.net>2014-07-11 16:56:19 -0400
commit88a52a5c74e5035c33533c65819d284eb9d3ac5e (patch)
treed50627fb021c88efcb5a2908744798b1e0858eac /Test.hs
parent2a727e8c5f8d003af7102ea7de22e45a5faec421 (diff)
Deal with change in git 2.0 that made indirect mode merge conflict resolution leave behind old files.
I think this is a git behavior change, but have not checked to be sure. Conflict cruft used to look like $foo~HEAD, but now just $foo is left behind as conflict cruft. With test case.
Diffstat (limited to 'Test.hs')
-rw-r--r--Test.hs1
1 files changed, 1 insertions, 0 deletions
diff --git a/Test.hs b/Test.hs
index 39da14e65..3ae5e323b 100644
--- a/Test.hs
+++ b/Test.hs
@@ -857,6 +857,7 @@ test_conflict_resolution testenv =
let v = filter (variantprefix `isPrefixOf`) l
length v == 2
@? (what ++ " not exactly 2 variant files in: " ++ show l)
+ conflictor `notElem` l @? ("conflictor still present after conflict resolution")
indir testenv d $ do
git_annex testenv "get" v @? "get failed"
git_annex_expectoutput testenv "find" v v