summaryrefslogtreecommitdiff
path: root/Upgrade
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2011-06-30 00:42:09 -0400
committerGravatar Joey Hess <joey@kitenet.net>2011-06-30 00:46:39 -0400
commit2cda9d0a0fcdd1cc2aebc066ef19282fbe36e898 (patch)
treede4244439c340a664afd2993b7203ca8ac31e0cd /Upgrade
parentd72fb5acc28af3ea6380dd09518f7d1382dea8d2 (diff)
generalized safeWriteFile to viaTmp
Diffstat (limited to 'Upgrade')
-rw-r--r--Upgrade/V2.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Upgrade/V2.hs b/Upgrade/V2.hs
index 8537a5022..ea68e78c9 100644
--- a/Upgrade/V2.hs
+++ b/Upgrade/V2.hs
@@ -128,7 +128,7 @@ gitAttributesUnWrite repo = do
let attributes = Git.attributes repo
whenM (doesFileExist attributes) $ do
c <- readFileStrict attributes
- liftIO $ safeWriteFile attributes $ unlines $
+ liftIO $ viaTmp writeFile attributes $ unlines $
filter (\l -> not $ l `elem` attrLines) $ lines c
Git.run repo "add" [File attributes]