]> Frank Brehm's Git Trees - profitbricks/jenkins-build-scripts.git/commitdiff
remove check
authorRobin Wittler <robin.wittler@profitbricks.com>
Wed, 3 Aug 2011 12:56:32 +0000 (14:56 +0200)
committerRobin Wittler <robin.wittler@profitbricks.com>
Wed, 3 Aug 2011 12:56:32 +0000 (14:56 +0200)
lib/git_helper.py

index 779b57f448ef16fb86a537fffe67fb765be925ad..d3a10e5140e3d1957ec563ee1c7d9cb05e28d451 100644 (file)
@@ -72,8 +72,8 @@ def git_clone_remote_repository(url, destination):
 def git_new_branch_from(branch_name, from_branch):
     if git_repo_has_branch(branch_name):
         raise BranchExistError(branch_name)
-    if not git_repo_has_branch(from_branch):
-        raise BranchNotExistError(from_branch)
+#    if not git_repo_has_branch(from_branch):
+#        raise BranchNotExistError(from_branch)
     cmd = [GIT, 'checkout', '-b', branch_name, from_branch]
 
     cmdobj = subprocess.Popen(