]> Frank Brehm's Git Trees - profitbricks/jenkins-build-scripts.git/commitdiff
debian_build: change the way now to handle [merge] trigger
authorMathias Klette <mathias.klette@profitbricks.com>
Tue, 28 May 2013 16:01:44 +0000 (18:01 +0200)
committerMathias Klette <mathias.klette@profitbricks.com>
Tue, 28 May 2013 16:01:44 +0000 (18:01 +0200)
debian_build.py

index 261a61b9d01a34d46b3e2c7eb528f710d647c9d5..ba13a6521ace06289daef6ca7dc08b6cf1ae6498 100755 (executable)
@@ -342,9 +342,10 @@ if __name__ == '__main__':
             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,
             ))