This commit is contained in:
Joey Hess 2013-05-17 16:25:12 -04:00
parent 94cb037aa3
commit 7bcfa88e6b

View file

@ -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 $