summaryrefslogtreecommitdiff
path: root/Upgrade
diff options
context:
space:
mode:
Diffstat (limited to 'Upgrade')
-rw-r--r--Upgrade/V2.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/Upgrade/V2.hs b/Upgrade/V2.hs
index e99a7cf81..4e686288f 100644
--- a/Upgrade/V2.hs
+++ b/Upgrade/V2.hs
@@ -87,8 +87,8 @@ inject :: FilePath -> FilePath -> Annex ()
inject source dest = do
g <- Annex.gitRepo
new <- liftIO (readFile $ olddir g </> source)
- prev <- Branch.get dest
- Branch.change dest $ unlines $ nub $ lines prev ++ lines new
+ Branch.change dest $ \prev ->
+ unlines $ nub $ lines prev ++ lines new
showProgress
logFiles :: FilePath -> Annex [FilePath]