dst_branch = 'integration' # define the new branch
local_branch = dst_branch # reset env for git-buildpackage
# FIXME: error handling when rebase doesn't cleanly complete?
- gitrepo.git.rebase('--onto', dst_branch, src_branch)
+ gitrepo.git.rebase(dst_branch)
gitrepo.git.checkout(dst_branch)
- logger.info('Checked out "{dst_branch}" branch after rebase completed from branch "{src_branch}".'.format(
+ gitrepo.git.merge(src_branch)
+ logger.info('Checked out "{dst_branch}" branch after rebase and merge completed from branch "{src_branch}".'.format(
dst_branch=dst_branch,
src_branch=src_branch,
))