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.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/gbp/git/repository.py b/gbp/git/repository.py
index d7eb271e..6d971c22 100644
--- a/gbp/git/repository.py
+++ b/gbp/git/repository.py
@@ -539,6 +539,13 @@ class GitRepository(object):
else:
log.debug("Your git suite doesn't support --edit/--no-edit "
"option for git-merge ")
+
+ if (self._cmd_has_feature('merge', 'allow-unrelated-histories')):
+ args.add_cond(True, '--allow-unrelated-histories')
+ else:
+ log.debug("Your git suite doesn't support --allow-unrelated-histories "
+ "option for git-merge ")
+
args.add(commit)
self._git_command("merge", args.args)