← 返回首页
Fix TestBigRepoR.setUp info message · gitpython-developers/GitPython@720e4bb · GitHub
Skip to content

Navigation Menu

Toggle navigation
Sign in
Appearance settings
Search or jump to...

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Include my email address so I can be contacted

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Resetting focus

Commit 720e4bb

Browse files
committed
Fix TestBigRepoR.setUp info message
Changes that fix the message itself: - Add a missing space between words (two parts were concatenated, with no space at the edge of either). - Capitalize "GitPython" since that is the repo and project name. Changes that improve how the message is produced: - Make the entire literal part of the string the format string, instead of formatting the first part and concatenating the second part. - Pass the format string and k_env_git_repo variable as separate arguments to logging.info, so the logging machinery takes care of substituting it for %s, rather than doing the substitution.
1 parent db317f1 commit 720e4bb

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

‎test/performance/lib.py‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,9 @@ def setUp(self):
4545
repo_path = os.environ.get(k_env_git_repo)
4646
if repo_path is None:
4747
logging.info(
48-
("You can set the %s environment variable to a .git repository of" % k_env_git_repo)
49-
+ "your choice - defaulting to the gitpython repository"
48+
"You can set the %s environment variable to a .git repository of your"
49+
" choice - defaulting to the GitPython repository",
50+
k_env_git_repo,
5051
)
5152
repo_path = osp.dirname(__file__)
5253
# end set some repo path

0 commit comments

Comments
 (0)

Footer

© 2026 GitHub, Inc.