#NEWLINE# def get_tags( directory = None ) : #NEWLINE# #INDENT# '\n    Returns a list of tags in the git repository.\n\n    :param directory: directory in which to preform this action\n    :returns: list of tags\n\n    :raises: subprocess.CalledProcessError if any git calls fail\n    ' #NEWLINE# out = check_output ( 'git tag -l' , shell = True , cwd = out ) #NEWLINE# return [ l . strip ( ) for l in out . splitlines ( ) ]