We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f0e7e41 + 1808ddd commit d7bf231Copy full SHA for d7bf231
git/cmd.py
@@ -1322,7 +1322,12 @@ def _parse_object_header(self, header_line: str) -> Tuple[str, str, int]:
1322
tokens = header_line.split()
1323
if len(tokens) != 3:
1324
if not tokens:
1325
- raise ValueError("SHA could not be resolved, git returned: %r" % (header_line.strip()))
+ 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)
1331
else:
1332
raise ValueError("SHA %s could not be resolved, git returned: %r" % (tokens[0], header_line.strip()))
1333
# END handle actual return value
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments