summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Init.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Init.hs b/Init.hs
index 6ddf36dc5..6409fe9c4 100644
--- a/Init.hs
+++ b/Init.hs
@@ -87,7 +87,7 @@ gitPreCommitHookWrite = unlessBare $ do
hook <- preCommitHook
ifM (liftIO $ doesFileExist hook)
( do
- content <- readFile hook
+ content <- liftIO $ readFile hook
when (content /= preCommitScript) $
warning $ "pre-commit hook (" ++ hook ++ ") already exists, not configuring"
, unlessM crippledFileSystem $