diff options
Diffstat (limited to 'Annex/Content.hs')
-rw-r--r-- | Annex/Content.hs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Annex/Content.hs b/Annex/Content.hs index 0bce5633f..e944ea62f 100644 --- a/Annex/Content.hs +++ b/Annex/Content.hs @@ -301,8 +301,8 @@ saveState :: Bool -> Annex () saveState oneshot = doSideAction $ do Annex.Queue.flush unless oneshot $ - ifM alwayscommit - ( Annex.Branch.commit "update" , Annex.Branch.stage) + whenM alwayscommit $ + Annex.Branch.commit "update" where alwayscommit = fromMaybe True . Git.Config.isTrue <$> getConfig (annexConfig "alwayscommit") "" |