Skip to content

Navigation Menu

Sign in
Appearance settings

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

Provide feedback

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

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 4d07031

Browse filesBrowse files
authored
Merge pull request #1932 from zerothi/1924-docs
fixed doc to not faulty do #1924
2 parents ee987da + f1ec1f1 commit 4d07031
Copy full SHA for 4d07031

File tree

Expand file treeCollapse file tree

1 file changed

+5
-5
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+5
-5
lines changed

‎test/test_docs.py

Copy file name to clipboardExpand all lines: test/test_docs.py
+5-5Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -469,11 +469,11 @@ def test_references_and_objects(self, rw_dir):
469469
# ![30-test_references_and_objects]
470470

471471
# [31-test_references_and_objects]
472-
git = repo.git
473-
git.checkout("HEAD", b="my_new_branch") # Create a new branch.
474-
git.branch("another-new-one")
475-
git.branch("-D", "another-new-one") # Pass strings for full control over argument order.
476-
git.for_each_ref() # '-' becomes '_' when calling it.
472+
git_cmd = repo.git
473+
git_cmd.checkout("HEAD", b="my_new_branch") # Create a new branch.
474+
git_cmd.branch("another-new-one")
475+
git_cmd.branch("-D", "another-new-one") # Pass strings for full control over argument order.
476+
git_cmd.for_each_ref() # '-' becomes '_' when calling it.
477477
# ![31-test_references_and_objects]
478478

479479
repo.git.clear_cache()

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.