Skip to content

Commit 59d208c

Browse files
committed
Fix message in SymbolicReference.from_path
This rarely-seen ValueError message had said SymbolicRef, and is now changed to SymbolicReference.
1 parent 4536b63 commit 59d208c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: git/refs/symbolic.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -798,7 +798,7 @@ def from_path(cls: Type[T_References], repo: "Repo", path: PathLike) -> T_Refere
798798
instance: T_References
799799
instance = ref_type(repo, path)
800800
if instance.__class__ == SymbolicReference and instance.is_detached:
801-
raise ValueError("SymbolRef was detached, we drop it")
801+
raise ValueError("SymbolicRef was detached, we drop it")
802802
else:
803803
return instance
804804

0 commit comments

Comments
 (0)