From 50a9ff53f42cf10dc13f7264b419ba9eaee2ee23 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Sat, 17 Sep 2011 18:55:38 +0200 Subject: [PATCH] checkout into right branch first... --- debian_build.py | 7 +++++++ 1 file changed, 7 insertions(+) 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, -- 2.39.5