summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2012-07-17 15:05:23 -0400
committerGravatar Joey Hess <joey@kitenet.net>2012-07-17 15:05:23 -0400
commitcfccfc19e0fca74fc7af38c0272007746193445e (patch)
treebc4eaf8ef70fc5d105a82a4b4298e256a17a4d7e
parent30f7b1599cd02b8b9bbbb76463c5d4f84cba3552 (diff)
parent0962d50ad234f444d4e5157457fbeeb45d858d96 (diff)
Merge branch 'master' into assistant
-rw-r--r--Git/Merge.hs6
1 files changed, 4 insertions, 2 deletions
diff --git a/Git/Merge.hs b/Git/Merge.hs
index 08fc6fb48..bad9f8258 100644
--- a/Git/Merge.hs
+++ b/Git/Merge.hs
@@ -10,8 +10,10 @@ module Git.Merge where
import Common
import Git
import Git.Command
+import Git.Version
{- Avoids recent git's interactive merge. -}
mergeNonInteractive :: Ref -> Repo -> IO Bool
-mergeNonInteractive branch = runBool "merge"
- [Param "--no-edit", Param $ show branch]
+mergeNonInteractive branch
+ | older "1.7.7.6" = runBool "merge" [Param $ show branch]
+ | otherwise = runBool "merge" [Param "--no-edit", Param $ show branch]