diff options
author | Johannes Gäßler <johannesg@5d6.de> | 2024-04-01 13:30:43 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-01 13:30:43 +0200 |
commit | 33a52448061cfd2ea44da9e6cb30b2ec22e2f6d0 (patch) | |
tree | feaa70bf7f0e3d4e4d81124c5bd8c87bebffe462 | |
parent | 226e819371eec0f298d9075198394a07b23ecfa9 (diff) |
compare-llama-bench.py: fix long hexsha args (#6424)
-rwxr-xr-x | scripts/compare-llama-bench.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/compare-llama-bench.py b/scripts/compare-llama-bench.py index 54a7771d..ef7f19ec 100755 --- a/scripts/compare-llama-bench.py +++ b/scripts/compare-llama-bench.py @@ -178,6 +178,9 @@ def get_commit_hexsha8(name): for t in repo.tags: if t.name == name: return t.commit.hexsha[:8] + for c in repo.iter_commits("--all"): + if c.hexsha[:8] == name[:8]: + return c.hexsha[:8] return None @@ -224,7 +227,7 @@ if known_args.compare is not None: hexsha8_compare = get_commit_hexsha8(known_args.compare) name_compare = known_args.compare if hexsha8_compare is None: - print(f"ERROR: cannot find data for baseline={known_args.compare}.") + print(f"ERROR: cannot find data for compare={known_args.compare}.") sys.exit(1) # Otherwise, search for the commit for llama-bench was most recently run # and that is not a parent of master: |