sync: Avoid recent git's interactive merge.

This commit is contained in:
Joey Hess 2012-06-23 10:22:56 -04:00
parent 3118eeb63f
commit c79e3b67e9
3 changed files with 20 additions and 1 deletions

View file

@ -16,6 +16,7 @@ import qualified Remote
import qualified Annex import qualified Annex
import qualified Annex.Branch import qualified Annex.Branch
import qualified Git.Command import qualified Git.Command
import qualified Git.Merge
import qualified Git.Branch import qualified Git.Branch
import qualified Git.Ref import qualified Git.Ref
import qualified Git import qualified Git
@ -157,7 +158,7 @@ mergeAnnex = do
mergeFrom :: Git.Ref -> CommandCleanup mergeFrom :: Git.Ref -> CommandCleanup
mergeFrom branch = do mergeFrom branch = do
showOutput showOutput
inRepo $ Git.Command.runBool "merge" [Param $ show branch] inRepo $ Git.Merge.mergeNonInteractive branch
changed :: Remote -> Git.Ref -> Annex Bool changed :: Remote -> Git.Ref -> Annex Bool
changed remote b = do changed remote b = do

17
Git/Merge.hs Normal file
View file

@ -0,0 +1,17 @@
{- git merging
-
- Copyright 2012 Joey Hess <joey@kitenet.net>
-
- Licensed under the GNU GPL version 3 or higher.
-}
module Git.Merge where
import Common
import Git
import Git.Command
{- Avoids recent git's interactive merge. -}
mergeNonInteractive :: Ref -> Repo -> IO Bool
mergeNonInteractive branch = runBool "merge"
[Param "--no-edit", Param $ show branch]

1
debian/changelog vendored
View file

@ -6,6 +6,7 @@ git-annex (3.20120616) UNRELEASED; urgency=low
Available on Linux, BSDs, and OSX! Available on Linux, BSDs, and OSX!
* Enable diskfree on kfreebsd, using kqueue. * Enable diskfree on kfreebsd, using kqueue.
* unused: Fix crash when key names contain invalid utf8. * unused: Fix crash when key names contain invalid utf8.
* sync: Avoid recent git's interactive merge.
-- Joey Hess <joeyh@debian.org> Tue, 12 Jun 2012 11:35:59 -0400 -- Joey Hess <joeyh@debian.org> Tue, 12 Jun 2012 11:35:59 -0400