| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 0f5320e commit 346424d
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -140,6 +140,7 @@ def _get_ref_info(cls, repo, ref_path): | |||
| 140 | 140 | # Don't only split on spaces, but on whitespace, which allows to parse lines like | |
| 141 | 141 | # 60b64ef992065e2600bfef6187a97f92398a9144 branch 'master' of git-server:/path/to/repo | |
| 142 | 142 | tokens = value.split() | |
| 143 | + assert(len(tokens) != 0) | ||
| 143 | 144 | except (OSError, IOError): | |
| 144 | 145 | # Probably we are just packed, find our entry in the packed refs file | |
| 145 | 146 | # NOTE: We are not a symbolic ref if we are in a packed file, as these | |
@@ -582,6 +583,8 @@ def _iter_items(cls, repo, common_path=None): | |||
| 582 | 583 | # END prune non-refs folders | |
| 583 | 584 | ||
| 584 | 585 | for f in files: | |
| 586 | + if f == 'packed-refs': | ||
| 587 | + continue | ||
| 585 | 588 | abs_path = to_native_path_linux(join_path(root, f)) | |
| 586 | 589 | rela_paths.add(abs_path.replace(to_native_path_linux(repo.git_dir) + '/', "")) | |
| 587 | 590 | # END for each file in root directory | |
| Back | FazBrowse Home | New Git URL |
0 commit comments