@lru_cache()
def get_git_hash():
 return _shell_command(['/usr/bin/git', 'rev-parse', '--verify', '--short', 'HEAD']).strip()

@ lru_cache ( ) def get_git_hash ( ) : return _shell_command ( [ '/usr/bin/git' , 'rev-parse' , '--verify' , '--short' , 'HEAD' ] ) . strip ( )
returns the current git commit hash .