src_branch = local_branch # save the original branch
dst_branch = 'integration' # define the new branch
local_branch = dst_branch # reset env for git-buildpackage
- gitrepo.git.rebase('origin/' + dst_branch)
- gitrepo.git.checkout(dst_branch)
- gitrepo.git.pull()
- gitrepo.git.merge(src_branch)
+ logger.debug(gitrepo.git.rebase('origin/' + dst_branch))
+ logger.debug(gitrepo.git.checkout(dst_branch))
+ logger.debug(gitrepo.git.pull())
+ logger.debug(gitrepo.git.merge(src_branch))
logger.info('Rebase and merge from branch "{src_branch}" completed. Now in "{dst_branch}".'.format(
dst_branch=dst_branch,
src_branch=src_branch,
))
except Exception as error:
- logger.error('Rebase has failed!', exc_info=error)
- gitrepo.git.reset('--hard',src_branch)
+ logger.error('Rebase has failed!\n\n%s\n' % error.stderr, exc_info=error)
+ logger.debug(gitrepo.git.rebase('--abort'))
+ logger.debug(gitrepo.git.reset('--hard',src_branch))
exit_error()
if 'no-test' in build_triggers: