Skip to content

Commit 4d07031

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

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

test/test_docs.py

Lines 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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy