From: Robin Wittler Date: Wed, 3 Aug 2011 12:16:29 +0000 (+0200) Subject: add debian branch checkout X-Git-Url: https://git.uhu-banane.net/?a=commitdiff_plain;h=5282d2b72257fda5f2233317ec625dd6c22b3879;p=profitbricks%2Fjenkins-build-scripts.git add debian branch checkout --- diff --git a/testgit_build.py b/testgit_build.py index 0c9736c..b666c45 100755 --- a/testgit_build.py +++ b/testgit_build.py @@ -129,6 +129,7 @@ if __name__ == '__main__': exit_error() atexit.register(remove_git_target_workspace) os.chdir(GIT_TARGET_DIR) + git_helper.git_checkout_branch(GIT_DEBIAN_BRANCH) repo = git.repo.Repo() if not GIT_COMMITTER_EMAIL: # if the GIT_COMMIT_EMAIL is not set, @@ -136,6 +137,9 @@ if __name__ == '__main__': for commit in repo.commits(): if commit.id == GIT_NEW_ID: GIT_COMMITTER_EMAIL = commit.committer.email + logger.debug( + 'Found "%s" in commit-id "%s" at "%s"' + %(GIT_COMMITTER_EMAIL, commit.id, else: raise Exception('No git_committer_email found') logger.info('Directory Listing: %s' %(os.listdir(GIT_TARGET_DIR)))