summaryrefslogtreecommitdiff
path: root/Assistant.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2013-11-13 12:54:18 -0400
committerGravatar Joey Hess <joey@kitenet.net>2013-11-13 12:54:18 -0400
commit5f10d428c36e3e9b189a6549c6b7a4e8f3b30a99 (patch)
tree42e44ef7fd8ae20adab3868866d827633da6f477 /Assistant.hs
parentd2c3ab3e918892d5f360e162b3bdba7daee8beb6 (diff)
ensure .git/annex exists before opening log file when starting assistant
Diffstat (limited to 'Assistant.hs')
-rw-r--r--Assistant.hs2
1 files changed, 2 insertions, 0 deletions
diff --git a/Assistant.hs b/Assistant.hs
index e7a78eec1..3f4c4fabd 100644
--- a/Assistant.hs
+++ b/Assistant.hs
@@ -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