def get_current_rev(self):
        from subprocess import PIPE, Popen
        cmd = ['cd %s;git show --pretty=format:"%%H" --quiet' % self.path,]
        return Popen(cmd, shell=True, stderr=PIPE, stdout=PIPE).communicate()[0]
dataset/ETHPy150Open washingtontimes/django-repositories/repositories/vcs.old.py/GitRepository.get_current_rev/original