in tsqa/environment.py [0:0]
def source_hash(self):
'''
Return the git hash of the source directory
'''
if not hasattr(self , '_source_hash'):
tmp, _ = tsqa.utils.run_sync_command(['git', 'rev-parse', 'HEAD'],
cwd=self.source_dir,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE,
)
self._source_hash = tmp.strip()
return self._source_hash