]> Frank Brehm's Git Trees - profitbricks/jenkins-build-scripts.git/commitdiff
hack+slash make it work
authorHolger Levsen <holger@layer-acht.org>
Sat, 17 Sep 2011 17:01:02 +0000 (19:01 +0200)
committerHolger Levsen <holger@layer-acht.org>
Sat, 17 Sep 2011 17:01:02 +0000 (19:01 +0200)
lib/git_helper.py

index 4a67c142009e1dc8ee585a4f503d7ce339f3f925..e978ccb9aa9cdf93b58151b16f694a7ce80bb469 100644 (file)
@@ -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(