Skip to content

Commit

Permalink
More debug prints.
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfpld committed Sep 20, 2024
1 parent 98a54e5 commit b6f134f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion extra/git-ref.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,11 @@

try:
ref = subprocess.run(["git", "rev-parse", "--short", rev], check=True, capture_output=True).stdout.decode().strip()
except subprocess.CalledProcessError:
except subprocess.CalledProcessError as e:
ref = "unknown"
print(f"git rev-parse failed with {e.returncode}:")
print(f" stdout: {e.stdout.decode().strip()}")
print(f" stderr: {e.stderr.decode().strip()}")

print(f"Git revision: {rev} -> {ref}")

Expand Down

0 comments on commit b6f134f

Please sign in to comment.