

def latest_git_tag():
    description = local('git describe master', capture=True).rstrip('\n')
    if ('-' in description):
        latest_tag = description[:description.find('-')]
    else:
        latest_tag = description
    if (not re.match(VERSION_PATTERN, latest_tag)):
        latest_tag = None
    return latest_tag

dataset/ETHPy150Open openxc/openxc-python/fabfile.py latest_git_tag/original