ensure .git/annex exists before opening log file when starting assistant
This commit is contained in:
parent
a11b394fb1
commit
20167fe945
1 changed files with 2 additions and 0 deletions
|
@ -50,6 +50,7 @@ import qualified Utility.Daemon
|
|||
import Utility.LogFile
|
||||
import Utility.ThreadScheduler
|
||||
import Utility.HumanTime
|
||||
import Annex.Perms
|
||||
import qualified Build.SysConfig as SysConfig
|
||||
|
||||
import System.Log.Logger
|
||||
|
@ -69,6 +70,7 @@ startDaemon assistant foreground startdelay listenhost startbrowser = do
|
|||
pidfile <- fromRepo gitAnnexPidFile
|
||||
logfile <- fromRepo gitAnnexLogFile
|
||||
#ifndef mingw32_HOST_OS
|
||||
createAnnexDirectory (parentDir logfile)
|
||||
logfd <- liftIO $ openLog logfile
|
||||
if foreground
|
||||
then do
|
||||
|
|
Loading…
Reference in a new issue