detect system with no dot in FQDN, where git commit will fail, and workaround
Sigh, git is so *fragile*. Or rather, across the set of systems that use git-annex, where are no many horribly broken systems..
This commit is contained in:
parent
62f391480d
commit
d84a000e92
5 changed files with 37 additions and 7 deletions
8
Init.hs
8
Init.hs
|
@ -32,6 +32,7 @@ import Utility.FileMode
|
|||
import Config
|
||||
import Annex.Direct
|
||||
import Annex.Content.Direct
|
||||
import Annex.Environment
|
||||
import Backend
|
||||
|
||||
genDescription :: Maybe String -> Annex String
|
||||
|
@ -53,11 +54,14 @@ initialize mdescription = do
|
|||
setVersion defaultVersion
|
||||
checkCrippledFileSystem
|
||||
checkFifoSupport
|
||||
Annex.Branch.create
|
||||
gitPreCommitHookWrite
|
||||
createInodeSentinalFile
|
||||
u <- getUUID
|
||||
describeUUID u =<< genDescription mdescription
|
||||
{- This will make the first commit to git, so ensure git is set up
|
||||
- properly to allow commits when running it. -}
|
||||
ensureCommit $ do
|
||||
Annex.Branch.create
|
||||
describeUUID u =<< genDescription mdescription
|
||||
|
||||
uninitialize :: Annex ()
|
||||
uninitialize = do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue