only create inode sentinal file when initializing a new repo

This commit is contained in:
Joey Hess 2013-02-20 13:55:53 -04:00
parent af1da07302
commit 6f9be431e6
2 changed files with 42 additions and 19 deletions

View file

@ -27,6 +27,7 @@ import Utility.Shell
import Utility.FileMode
import Config
import Annex.Direct
import Annex.Content.Direct
import Backend
genDescription :: Maybe String -> Annex String
@ -45,6 +46,7 @@ initialize mdescription = do
Annex.Branch.create
setVersion
gitPreCommitHookWrite
createInodeSentinalFile
u <- getUUID
describeUUID u =<< genDescription mdescription