Skip to content

Commit 5af7446

Browse files
committed
Fix case in IndexObject.abspath exception message
The message refers to the (public) working_tree_dir attribute by name, so that should be uncapitalized to reflect the case by which it must be accessed, even when it appears at the beginning of a sentence.
1 parent 35fd65b commit 5af7446

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎git/objects/base.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -221,4 +221,4 @@ def abspath(self) -> PathLike:
221221
if self.repo.working_tree_dir is not None:
222222
return join_path_native(self.repo.working_tree_dir, self.path)
223223
else:
224-
raise WorkTreeRepositoryUnsupported("Working_tree_dir was None or empty")
224+
raise WorkTreeRepositoryUnsupported("working_tree_dir was None or empty")

0 commit comments

Comments
 (0)