def get_categories(cat_str):
    """
    Transform string with categories from cli into list of categories.
    """
    if cat_str is None:
        cat_list = ['gititized']
    elif len(cat_str) == 0 :
        cat_list = []
    else:
        cat_list = cat_str.split(',')
    return cat_list