()
return False
Test all options passed to git for `breakglass`
Test all options passed to git for `breakglass`
Test all options passed to git for breakglass
def get_breakglass_option() -> bool:
    """Test all options passed to git for `breakglass`"""
    raw_option_count = os.getenv("GIT_PUSH_OPTION_COUNT", None)
    if raw_option_count is not None:
        option_count = int(raw_option_count)
        for option in range(option_count):
            if os.getenv(f"GIT_PUSH_OPTION_{option}", "") == "breakglass":
                return True

    return False
def get_breakglass_option ( ) -> bool : raw_option_count = os . getenv ( "GIT_PUSH_OPTION_COUNT" , None ) if raw_option_count is not None : option_count = int ( raw_option_count ) for option in range ( option_count ) : if os . getenv ( f"GIT_PUSH_OPTION_{option}" , "" ) == "breakglass" : return True return False