From: Holger Levsen Date: Sat, 17 Sep 2011 17:01:02 +0000 (+0200) Subject: hack+slash make it work X-Git-Url: https://git.uhu-banane.net/?a=commitdiff_plain;h=c3647aa620fcf540e910f1c94bb7d1d24a78ae24;p=profitbricks%2Fjenkins-build-scripts.git hack+slash make it work --- diff --git a/lib/git_helper.py b/lib/git_helper.py index 4a67c14..e978ccb 100644 --- a/lib/git_helper.py +++ b/lib/git_helper.py @@ -112,8 +112,12 @@ def git_new_debian_branch_from(from_branch): return git_new_branch_from('debian', from_branch) def git_checkout_branch(branch_name): - if not git_repo_has_branch(branch_name): - raise BranchNotExistError(branch_name) + + # remove this check as it make switching to "commit-branches" impossible + # and there is proper error handling below anyway... + #if not git_repo_has_branch(branch_name): + #raise BranchNotExistError(branch_name) + cmd = [GIT, 'checkout', branch_name] cmdobj = subprocess.Popen(