diff options
author | Jun Wang <junbill.wang@samsung.com> | 2016-12-20 16:05:32 +0800 |
---|---|---|
committer | SoonKyu Park <sk7.park@samsung.com> | 2016-12-26 22:23:22 +0900 |
commit | 10bbc5251e92550332f402c716e0f4e7bbfdffd5 (patch) | |
tree | 746ed0a70c035a794fc39fa763ab7994a15b1833 | |
parent | c8c57f2042648a95ef80cfbc16b880bebdcb8ed2 (diff) | |
download | git-buildpackage-10bbc5251e92550332f402c716e0f4e7bbfdffd5.tar.gz git-buildpackage-10bbc5251e92550332f402c716e0f4e7bbfdffd5.tar.bz2 git-buildpackage-10bbc5251e92550332f402c716e0f4e7bbfdffd5.zip |
Adapt git-merge option when git version greater then 2.9
Change-Id: Icd9cb9edc8517095984c0a0f497173e2f068aa20
-rw-r--r-- | gbp/git/repository.py | 7 |
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) |