Skip to content

Commit f1ec1f1

Browse files
committed
fixed doc to not faulty do #1924
Signed-off-by: Nick Papior <nickpapior@gmail.com>
1 parent ee987da commit f1ec1f1

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

test/test_docs.py

+5-5
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)