summaryrefslogtreecommitdiff
path: root/Command/Uninit.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2011-01-28 12:35:51 -0400
committerGravatar Joey Hess <joey@kitenet.net>2011-01-28 12:35:51 -0400
commit04fe906ac6e611fd59ef44244a01e8fe61abec6f (patch)
treecfcc6f6ca79bc55606135088d609237a8aacd1b2 /Command/Uninit.hs
parent4f9336bb60ca4dc08ca271605de71415c98ec3ff (diff)
use safewritefile
Diffstat (limited to 'Command/Uninit.hs')
-rw-r--r--Command/Uninit.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Command/Uninit.hs b/Command/Uninit.hs
index 93465df37..e9406ce3a 100644
--- a/Command/Uninit.hs
+++ b/Command/Uninit.hs
@@ -59,5 +59,5 @@ gitAttributesUnWrite repo = do
attrexists <- doesFileExist attributes
when attrexists $ do
c <- readFileStrict attributes
- writeFile attributes $ unlines $
+ safeWriteFile attributes $ unlines $
filter (/= Command.Init.attrLine) $ lines c