diff options
author | Guido Günther <agx@sigxcpu.org> | 2016-08-26 13:59:43 +0200 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2016-08-26 14:14:36 +0200 |
commit | 99e770304ffb0b8df5088d2e94c09ab59cd3f27c (patch) | |
tree | d554727e085b1c7d48ffa90dc3ea07ef63d59203 /gbp/git | |
parent | bf46e26ff985802277fa500a8ecc515acc5da093 (diff) |
import_orig: Properly abort merge on rollbacks
If merging fails we need to call "git merge --abort"
Diffstat (limited to 'gbp/git')
-rw-r--r-- | gbp/git/repository.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gbp/git/repository.py b/gbp/git/repository.py index 60656652..08e29d2c 100644 --- a/gbp/git/repository.py +++ b/gbp/git/repository.py @@ -453,6 +453,12 @@ class GitRepository(object): args.add(commit) self._git_command("merge", args.args) + def abort_merge(self): + """ + Abort a merge + """ + self._git_command("merge", ["--abort"]) + def is_fast_forward(self, from_branch, to_branch): """ Check if an update I{from from_branch} to I{to_branch} would be a fast |