diff options
Diffstat (limited to 'Command/Sync.hs')
-rw-r--r-- | Command/Sync.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Command/Sync.hs b/Command/Sync.hs index 7e3769864..7a034bfa4 100644 --- a/Command/Sync.hs +++ b/Command/Sync.hs @@ -80,7 +80,6 @@ syncRemotes rs = ifM (Annex.getState Annex.fast) ( nub <$> pickfast , wanted ) commit :: CommandStart commit = next $ next $ do - Annex.Branch.commit "update" ifM isDirect ( ifM stageDirect ( runcommit [] , return True ) @@ -90,6 +89,7 @@ commit = next $ next $ do runcommit ps = do showStart "commit" "" showOutput + Annex.Branch.commit "update" -- Commit will fail when the tree is clean, so ignore failure. _ <- inRepo $ Git.Command.runBool "commit" $ ps ++ [Param "-m", Param "git-annex automatic sync"] |