diff options
author | 2013-04-22 15:36:34 -0400 | |
---|---|---|
committer | 2013-04-22 15:36:34 -0400 | |
commit | 6c5360cbdf20821a97a0f109ea114e4772b001e6 (patch) | |
tree | 030a5613938276edb57e18a09063bfe4c4ed4905 /Command/WebApp.hs | |
parent | 8655ea7f8e853b7de4defbca2655b741362ecd21 (diff) |
Detect systems that have no user name set in GECOS, and also don't have user.name set in git config, and put in a workaround so that commits to the git-annex branch (and the assistant) will still succeed despite git not liking the system configuration.
Diffstat (limited to 'Command/WebApp.hs')
-rw-r--r-- | Command/WebApp.hs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Command/WebApp.hs b/Command/WebApp.hs index 90abd4d27..0e0756901 100644 --- a/Command/WebApp.hs +++ b/Command/WebApp.hs @@ -15,6 +15,7 @@ import Assistant.NamedThread import Assistant.Threads.WebApp import Assistant.WebApp import Assistant.Install +import Annex.Environment import Utility.WebApp import Utility.Daemon (checkDaemon) import Init @@ -111,6 +112,7 @@ startNoRepo = do -} firstRun :: Maybe HostName -> IO () firstRun listenhost = do + checkEnvironmentIO {- Without a repository, we cannot have an Annex monad, so cannot - get a ThreadState. Using undefined is only safe because the - webapp checks its noAnnex field before accessing the |