def currentTag():
 cmd = 'git describe --always --tag'.split()
 tag = subprocess.check_output(cmd, cwd=VERSIONSDIR).split('-')[0]
 return tag

def currentTag ( ) : cmd = 'git describe --always --tag' . split ( ) tag = subprocess . check_output ( cmd , cwd = VERSIONSDIR ) . split ( '-' ) [ 0 ] return tag
returns the current tag name from the version repository .