From bb2bbc010b94755e82086cd52d9332d8166a3426 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Fri, 17 May 2013 16:25:12 -0400 Subject: fix --- Init.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Init.hs') 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 $ -- cgit v1.2.3