aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2014-07-09 15:39:19 -0400
committerGravatar Joey Hess <joey@kitenet.net>2014-07-09 15:39:19 -0400
commit766336fcfef7150d3e4ec053b611343f1f080af0 (patch)
tree3d9d403d840c3513f40f54cd0720aa678f6b608f
parent6684d8e2417a645e2e6c6af442efe13539276acc (diff)
fix build warning5.20140709
-rw-r--r--Annex/AutoMerge.hs6
1 files changed, 3 insertions, 3 deletions
diff --git a/Annex/AutoMerge.hs b/Annex/AutoMerge.hs
index 1c463003e..d587e03d1 100644
--- a/Annex/AutoMerge.hs
+++ b/Annex/AutoMerge.hs
@@ -134,11 +134,11 @@ resolveMerge' (Just us) them u = do
replacewithlink dest l
stageSymlink dest =<< hashSymlink l
- replacewithlink file link = ifM isDirect
+ replacewithlink dest link = ifM isDirect
( do
d <- fromRepo gitAnnexMergeDir
- replaceFile (d </> file) $ makeGitLink link
- , replaceFile file $ makeGitLink link
+ replaceFile (d </> dest) $ makeGitLink link
+ , replaceFile dest $ makeGitLink link
)
{- Stage a graft of a directory or file from a branch.