improve bare repo handing
Many more commands can work in bare repos now, thanks to the git-annex branch.
This commit is contained in:
parent
944c51ba26
commit
80302d0b46
11 changed files with 23 additions and 31 deletions
|
@ -8,7 +8,7 @@
|
|||
module Command.Init where
|
||||
|
||||
import Control.Monad.State (liftIO)
|
||||
import Control.Monad (when)
|
||||
import Control.Monad (when, unless)
|
||||
import System.Directory
|
||||
|
||||
import Command
|
||||
|
@ -44,7 +44,8 @@ perform description = do
|
|||
u <- getUUID g
|
||||
setVersion
|
||||
describeUUID u description
|
||||
gitPreCommitHookWrite g
|
||||
unless (Git.repoIsLocalBare g) $
|
||||
gitPreCommitHookWrite g
|
||||
next $ return True
|
||||
|
||||
{- set up a git pre-commit hook, if one is not already present -}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue