configure: Check if ssh connection caching is supported by the installed version of ssh and default annex.sshcaching accordingly.

This commit is contained in:
Joey Hess 2012-02-25 19:15:29 -04:00
parent c3fbe07d7a
commit 12b89a3eb8
8 changed files with 27 additions and 7 deletions

View file

@ -313,7 +313,8 @@ saveState :: Bool -> Annex ()
saveState oneshot = do
Annex.Queue.flush False
unless oneshot $ do
alwayscommit <- Git.configTrue <$> fromRepo (Git.Config.get "annex.alwayscommit" "true")
alwayscommit <- fromMaybe True . Git.configTrue
<$> fromRepo (Git.Config.get "annex.alwayscommit" "")
if alwayscommit
then Annex.Branch.commit "update"
else Annex.Branch.stage