def make_head_commit():
    revision = local('git rev-list %(default_revision)s '
            '-n 1 --abbrev-commit --abbrev=7' % env, capture=True)
    env.head_commit = revision.rstrip('\n')
Assigns the commit SHA of the current git HEAD to env.head_commit.
dataset/ETHPy150Open bueda/ops/buedafab/deploy/release.py/make_head_commit