From 7654eb6b3e3221c0ffbd071f51c822eff15abb28 Mon Sep 17 00:00:00 2001 From: Mathias Klette Date: Tue, 4 Jun 2013 12:40:01 +0200 Subject: [PATCH] debian_build: abort if rebase failed --- debian_build.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/debian_build.py b/debian_build.py index bb2c94a..f340f3e 100755 --- a/debian_build.py +++ b/debian_build.py @@ -344,6 +344,8 @@ if __name__ == '__main__': )) except Exception as error: logger.error('Rebase has failed!', exc_info=error) + gitrepo.git.reset('--hard',src_branch) + exit_error() if 'no-test' in build_triggers: # debian/rules from vdc-bundles determines maven options for tests -- 2.39.5