| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1322,7 +1322,12 @@ def _parse_object_header(self, header_line: str) -> Tuple[str, str, int]: | |||
| 1322 | 1322 | tokens = header_line.split() | |
| 1323 | 1323 | if len(tokens) != 3: | |
| 1324 | 1324 | if not tokens: | |
| 1325 | - raise ValueError("SHA could not be resolved, git returned: %r" % (header_line.strip())) | ||
| 1325 | + err_msg = ( | ||
| 1326 | + f"SHA is empty, possible dubious ownership in the repository " | ||
| 1327 | + f"""at {self._working_dir}.\n If this is unintended run:\n\n """ | ||
| 1328 | + f""" "git config --global --add safe.directory {self._working_dir}" """ | ||
| 1329 | + ) | ||
| 1330 | + raise ValueError(err_msg) | ||
| 1326 | 1331 | else: | |
| 1327 | 1332 | raise ValueError("SHA %s could not be resolved, git returned: %r" % (tokens[0], header_line.strip())) | |
| 1328 | 1333 | # END handle actual return value | |
| Back | FazBrowse Home | New Git URL |
0 commit comments