fix: Commit ID parsing (#28975)

This is/was never returning anything.

- Arguments come before revs
- `cd` is kinda unnecessary
This commit is contained in:
Ankush Menat 2024-12-31 16:03:57 +05:30 committed by GitHub
parent 19bbc24d43
commit bd3af4391f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -152,7 +152,7 @@ def get_app_last_commit_ref(app):
try:
with open(os.devnull, "wb") as null_stream:
result = subprocess.check_output(
f"cd ../apps/{app} && git rev-parse HEAD --short 7",
f"git -C ../apps/{app} rev-parse --short=7 HEAD",
shell=True,
stdin=null_stream,
stderr=null_stream,