From 6c5360cbdf20821a97a0f109ea114e4772b001e6 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Mon, 22 Apr 2013 15:36:34 -0400 Subject: 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. --- CmdLine.hs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'CmdLine.hs') diff --git a/CmdLine.hs b/CmdLine.hs index 63d36c74c..050f119f1 100644 --- a/CmdLine.hs +++ b/CmdLine.hs @@ -24,6 +24,7 @@ import qualified Git import qualified Git.AutoCorrect import Annex.Content import Annex.Ssh +import Annex.Environment import Command type Params = [String] @@ -39,6 +40,7 @@ dispatch fuzzyok allargs allcmds commonoptions fields header getgitrepo = do Right g -> do state <- Annex.new g (actions, state') <- Annex.run state $ do + checkEnvironment checkfuzzy forM_ fields $ uncurry Annex.setField sequence_ flags -- cgit v1.2.3