configure: Check if ssh connection caching is supported by the installed version of ssh and default annex.sshcaching accordingly.
This commit is contained in:
parent
c3fbe07d7a
commit
12b89a3eb8
8 changed files with 27 additions and 7 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue