summaryrefslogtreecommitdiff
path: root/gbp/git/repository.py
diff options
context:
space:
mode:
Diffstat (limited to 'gbp/git/repository.py')
-rw-r--r--gbp/git/repository.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/gbp/git/repository.py b/gbp/git/repository.py
index e31584c..9d81399 100644
--- a/gbp/git/repository.py
+++ b/gbp/git/repository.py
@@ -372,7 +372,11 @@ class GitRepository(object):
"""
args = GitArgs()
args.add_cond(verbose, '--summary', '--no-summary')
- args.add_cond(edit, '--edit', '--no-edit')
+ if (self._cmd_has_feature('merge', 'edit')):
+ args.add_cond(edit, '--edit', '--no-edit')
+ else:
+ log.debug("Your git suite doesn't support --edit/--no-edit "
+ "option for git-merge ")
args.add(commit)
self._git_command("merge", args.args)