@@ -272,7 +272,7 @@ def _get_ref_info(cls, repo: "Repo", ref_path: Union[PathLike, None]) -> Union[T
272272 :return:
273273 *(str(sha), str(target_ref_path))*, where:
274274
275- * *sha* is of the file at relative_fpath points to if available, or ``None``.
275+ * *sha* is of the file at relative_path points to if available, or ``None``.
276276 * *target_ref_path* is the reference we point to, or ``None``.
277277 """
278278 return cls ._get_ref_info_helper (repo , ref_path )
@@ -813,7 +813,7 @@ def _iter_items(
813813 ) -> Iterator [T_References ]:
814814 if common_path is None :
815815 common_path = cls ._common_path_default
816- relative_fpaths = set ()
816+ relative_paths = set ()
817817
818818 # Walk loose refs.
819819 # Currently we do not follow links.
@@ -828,19 +828,19 @@ def _iter_items(
828828 if f == "packed-refs" :
829829 continue
830830 abs_path = to_native_path_linux (join_path (root , f ))
831- relative_fpaths .add (abs_path .replace (to_native_path_linux (repo .common_dir ) + "/" , "" ))
831+ relative_paths .add (abs_path .replace (to_native_path_linux (repo .common_dir ) + "/" , "" ))
832832 # END for each file in root directory
833833 # END for each directory to walk
834834
835835 # Read packed refs.
836836 for _sha , relative_fpath in cls ._iter_packed_refs (repo ):
837837 if relative_fpath .startswith (str (common_path )):
838- relative_fpaths .add (relative_fpath )
838+ relative_paths .add (relative_fpath )
839839 # END relative path matches common path
840840 # END packed refs reading
841841
842842 # Yield paths in sorted order.
843- for path in sorted (relative_fpaths ):
843+ for path in sorted (relative_paths ):
844844 try :
845845 yield cls .from_path (repo , path )
846846 except ValueError :
0 commit comments