| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -129,7 +129,9 @@ def _get_ref_info(cls, repo, ref_path): | |||
| 129 | 129 | fp = open(join(repo.git_dir, ref_path), 'r') | |
| 130 | 130 | value = fp.read().rstrip() | |
| 131 | 131 | fp.close() | |
| 132 | - tokens = value.split(" ") | ||
| 132 | + # Don't only split on spaces, but on whitespace, which allows to parse lines like | ||
| 133 | + # 60b64ef992065e2600bfef6187a97f92398a9144 branch 'master' of git-server:/path/to/repo | ||
| 134 | + tokens = value.split() | ||
| 133 | 135 | except (OSError, IOError): | |
| 134 | 136 | # Probably we are just packed, find our entry in the packed refs file | |
| 135 | 137 | # NOTE: We are not a symbolic ref if we are in a packed file, as these | |
| Back | FazBrowse Home | New Git URL |
0 commit comments