@@ -134,7 +134,7 @@ def _iter_packed_refs(cls, repo: "Repo") -> Iterator[Tuple[str, str]]:
134134 # that can go on this line, as per comments in git file
135135 # refs/packed-backend.c
136136 # I looked at master on 2017-10-11,
137- # commit 111ef79safe , after tag v2.15.0-rc1
137+ # commit 111ef79afe , after tag v2.15.0-rc1
138138 # from repo https://github.com/git/git.git
139139 if line .startswith ("# pack-refs with:" ) and "peeled" not in line :
140140 raise TypeError ("PackingType of packed-Refs not understood: %r" % line )
@@ -226,7 +226,7 @@ def _get_ref_info_helper(
226226 :return:
227227 *(str(sha), str(target_ref_path))*, where:
228228
229- * *sha* is of the file at real_path points to if available, or ``None``.
229+ * *sha* is of the file at relative_fpath points to if available, or ``None``.
230230 * *target_ref_path* is the reference we point to, or ``None``.
231231 """
232232 if ref_path :
@@ -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 real_path points to if available, or ``None``.
275+ * *sha* is of the file at relative_fpath 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- real_paths = set ()
816+ relative_fpaths = 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- real_paths .add (abs_path .replace (to_native_path_linux (repo .common_dir ) + "/" , "" ))
831+ relative_fpaths .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.
836- for _sha , real_path in cls ._iter_packed_refs (repo ):
837- if real_path .startswith (str (common_path )):
838- real_paths .add (real_path )
836+ for _sha , relative_fpath in cls ._iter_packed_refs (repo ):
837+ if relative_fpath .startswith (str (common_path )):
838+ relative_fpaths .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 (real_paths ):
843+ for path in sorted (relative_fpaths ):
844844 try :
845845 yield cls .from_path (repo , path )
846846 except ValueError :
0 commit comments