make gitDir absolute

This commit is contained in:
Joey Hess 2011-08-19 12:59:07 -04:00
parent 7cedd28ab0
commit e97fede8cd
3 changed files with 8 additions and 8 deletions

View file

@ -79,7 +79,7 @@ unlessBare a = do
preCommitHook :: Annex FilePath
preCommitHook = do
g <- Annex.gitRepo
return $ Git.workTree g ++ "/" ++ Git.gitDir g ++ "/hooks/pre-commit"
return $ Git.gitDir g ++ "/hooks/pre-commit"
preCommitScript :: String
preCommitScript =