Skip to content

Commit 24d6067

Browse files
committed
Fix wrong GitCommandNotFound command from refresh
See #1809. The test extended in the previous commit now passes.
1 parent f98aadd commit 24d6067

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: git/cmd.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -483,7 +483,7 @@ def refresh(cls, path: Union[None, PathLike] = None) -> bool:
483483
else:
484484
# After the first refresh (when GIT_PYTHON_GIT_EXECUTABLE is no longer
485485
# None) we raise an exception.
486-
raise GitCommandNotFound("git", err)
486+
raise GitCommandNotFound(new_git, err)
487487

488488
return has_git
489489

0 commit comments

Comments
 (0)