fix
This commit is contained in:
parent
94cb037aa3
commit
7bcfa88e6b
1 changed files with 1 additions and 1 deletions
2
Init.hs
2
Init.hs
|
@ -87,7 +87,7 @@ gitPreCommitHookWrite = unlessBare $ do
|
||||||
hook <- preCommitHook
|
hook <- preCommitHook
|
||||||
ifM (liftIO $ doesFileExist hook)
|
ifM (liftIO $ doesFileExist hook)
|
||||||
( do
|
( do
|
||||||
content <- readFile hook
|
content <- liftIO $ readFile hook
|
||||||
when (content /= preCommitScript) $
|
when (content /= preCommitScript) $
|
||||||
warning $ "pre-commit hook (" ++ hook ++ ") already exists, not configuring"
|
warning $ "pre-commit hook (" ++ hook ++ ") already exists, not configuring"
|
||||||
, unlessM crippledFileSystem $
|
, unlessM crippledFileSystem $
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue