'Retrieves the head commit hash.'

def get_head_commit(self):

    head_commit_res = run_quick('git    -C    {path}    rev-parse    HEAD'.format(path=self.path), echo=False)
    return head_commit_res.stdout.strip()
