mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
Fix typos in error message (#101231)
Pull Request resolved: https://github.com/pytorch/pytorch/pull/101231 Approved by: https://github.com/huydhn
This commit is contained in:
committed by
PyTorch MergeBot
parent
d9cfa0461a
commit
02f152626c
2
.github/scripts/gitutils.py
vendored
2
.github/scripts/gitutils.py
vendored
@ -146,7 +146,7 @@ class GitRepo:
|
||||
def show_ref(self, name: str) -> str:
|
||||
refs = self._run_git("show-ref", "-s", name).strip().split("\n")
|
||||
if not all(refs[i] == refs[0] for i in range(1, len(refs))):
|
||||
raise RuntimeError(f"referce {name} is ambigous")
|
||||
raise RuntimeError(f"reference {name} is ambiguous")
|
||||
return refs[0]
|
||||
|
||||
def rev_parse(self, name: str) -> str:
|
||||
|
Reference in New Issue
Block a user