From 7bcfa88e6b3e4db7274d65c6b92848cdbc489276 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Fri, 17 May 2013 16:25:12 -0400 Subject: [PATCH] fix --- Init.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Init.hs b/Init.hs index 6ddf36dc50..6409fe9c4a 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 $