Skip to content

Commit

Permalink
Merge pull request #1932 from zerothi/1924-docs
Browse files Browse the repository at this point in the history
fixed doc to not faulty do #1924
  • Loading branch information
Byron authored Jun 15, 2024
2 parents ee987da + f1ec1f1 commit 4d07031
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/test_docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 4d07031

Please sign in to comment.