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:
Sergii Dymchenko
2023-05-12 01:34:55 +00:00
committed by PyTorch MergeBot
parent d9cfa0461a
commit 02f152626c

View File

@ -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: