Merge pull request #2761 from dgreen-arm/backport-2.16-fix-rev-parse-in-abi-script

Backport 2.16: Change worktree_rev to HEAD for rev-parse
This commit is contained in:
Gilles Peskine 2019-08-03 13:37:14 +02:00 committed by GitHub
commit 56216b5a3c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -107,7 +107,7 @@ class AbiChecker(object):
)
self.log.debug(worktree_output.decode("utf-8"))
version.commit = subprocess.check_output(
[self.git_command, "rev-parse", worktree_rev],
[self.git_command, "rev-parse", "HEAD"],
cwd=git_worktree_path,
stderr=subprocess.STDOUT
).decode("ascii").rstrip()