def owtf_last_commit():
    if os.path.exists(os.path.join(root_dir, '.git')):
        command = 'git log -n 1 --pretty=format:"%H"'
        commit_hash = os.popen(command).read()
        return commit_hash
    else:
        return "*Not a git repository.*"
Prints the local git repo's last commit hash.
dataset/ETHPy150Open owtf/owtf/install/install.py/owtf_last_commit