From f1ec1f15ec13e369bb5a4d758e94d7877e481ed3 Mon Sep 17 00:00:00 2001 From: Nick Papior Date: Thu, 13 Jun 2024 14:35:03 +0200 Subject: [PATCH] fixed doc to not faulty do #1924 Signed-off-by: Nick Papior --- test/test_docs.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/test/test_docs.py b/test/test_docs.py index b3547c1de..cc0bbf26a 100644 --- a/test/test_docs.py +++ b/test/test_docs.py @@ -469,11 +469,11 @@ def test_references_and_objects(self, rw_dir): # ![30-test_references_and_objects] # [31-test_references_and_objects] - git = repo.git - git.checkout("HEAD", b="my_new_branch") # Create a new branch. - git.branch("another-new-one") - git.branch("-D", "another-new-one") # Pass strings for full control over argument order. - git.for_each_ref() # '-' becomes '_' when calling it. + git_cmd = repo.git + git_cmd.checkout("HEAD", b="my_new_branch") # Create a new branch. + git_cmd.branch("another-new-one") + git_cmd.branch("-D", "another-new-one") # Pass strings for full control over argument order. + git_cmd.for_each_ref() # '-' becomes '_' when calling it. # ![31-test_references_and_objects] repo.git.clear_cache()