tasks/release.py
def check_local_branch(ctx, branch):
    """
    Checks if the given branch exists locally
    """
    matching_branch = ctx.run(f"git --no-pager branch --list {branch} | wc -l", hide=True).stdout.strip()

    # Return True if a branch is returned by git branch --list
    return matching_branch != "0"

    Checks if the given branch exists locally
    
Checks if the given branch exists locally
Checks if the given branch exists locally
def check_local_branch(ctx, branch):
    matching_branch = ctx.run(f"git --no-pager branch --list {branch} | wc -l", hide=True).stdout.strip()
    return matching_branch != "0"
def check_local_branch ( ctx , branch ) : matching_branch = ctx . run ( f"git --no-pager branch --list {branch} | wc -l" , hide = True ) . stdout . strip ( ) return matching_branch != "0"
Checks if the given branch exists locally
Checks if the given branch exists locally
"""
    Checks if the given branch exists locally
    """ # Return True if a branch is returned by git branch --list
ctx
branch