def get_tag_commit():
 try:
  return check_output(['git', 'describe', '--tags'], stderr=STDOUT, cwd=os.path.dirname(os.path.abspath(__file__)))
 except CalledProcessError as e:
  logger.error('Error calling git: "{}" \n output: "{}"'.format(e, e.output))
  return None
 except OSError as e:
  logger.error('Could not call git, is it installed? error msg: "{}"'.format(e))
  return None

def get_tag_commit ( ) : try : return check_output ( [ 'git' , 'describe' , '--tags' ] , stderr = STDOUT , cwd = os . path . dirname ( os . path . abspath ( __file__ ) ) ) except CalledProcessError as e : logger . error ( 'Error calling git: "{}" \n output: "{}"' . format ( e , e . output ) ) return None except OSError as e : logger . error ( 'Could not call git, is it installed? error msg: "{}"' . format ( e ) ) return None
returns string: tag-commits since tag-7 digit commit id .