From c3647aa620fcf540e910f1c94bb7d1d24a78ae24 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Sat, 17 Sep 2011 19:01:02 +0200 Subject: [PATCH] hack+slash make it work --- lib/git_helper.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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( -- 2.39.5