From: Holger Levsen Date: Sat, 17 Sep 2011 16:55:38 +0000 (+0200) Subject: checkout into right branch first... X-Git-Url: https://git.uhu-banane.net/?a=commitdiff_plain;h=50a9ff53f42cf10dc13f7264b419ba9eaee2ee23;p=profitbricks%2Fjenkins-build-scripts.git checkout into right branch first... --- diff --git a/debian_build.py b/debian_build.py index b412be1..7a5d6c0 100755 --- a/debian_build.py +++ b/debian_build.py @@ -380,6 +380,13 @@ if __name__ == '__main__': subprocess.check_call(cmd) else: # so we're in the master or release branches + # let's check it out :-D + if git_helper.git_checkout_branch(GIT_UPSTREAM_BRANCH): + logger.info('git checkout %s was successfull' % GIT_UPSTREAM_BRANCH) + else: + logger.info('git checkout %s was not successfull' % GIT_UPSTREAM_BRANCH) + exit_error() + cmd = ['dpkg-parsechangelog'] parse_changelog = subprocess.Popen( cmd,