File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -178,6 +178,9 @@ def get_commit_hexsha8(name):
178178 for t in repo .tags :
179179 if t .name == name :
180180 return t .commit .hexsha [:8 ]
181+ for c in repo .iter_commits ("--all" ):
182+ if c .hexsha [:8 ] == name [:8 ]:
183+ return c .hexsha [:8 ]
181184 return None
182185
183186
@@ -224,7 +227,7 @@ def get_commit_hexsha8(name):
224227 hexsha8_compare = get_commit_hexsha8 (known_args .compare )
225228 name_compare = known_args .compare
226229 if hexsha8_compare is None :
227- print (f"ERROR: cannot find data for baseline ={ known_args .compare } ." )
230+ print (f"ERROR: cannot find data for compare ={ known_args .compare } ." )
228231 sys .exit (1 )
229232# Otherwise, search for the commit for llama-bench was most recently run
230233# and that is not a parent of master:
You can’t perform that action at this time.
0 commit comments