Skip to content

Commit

Permalink
docs/merge: default_signature is an attribute, not a method
Browse files Browse the repository at this point in the history
Avoid:

  >>> repo.default_signature()
  Traceback (most recent call last):
    File "<stdin>", line 1, in <module>
  TypeError: '_pygit2.Signature' object is not callable
  • Loading branch information
wking committed Oct 26, 2014
1 parent b8efdde commit 120fded
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/merge.rst
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ You can now inspect the index file for conflicts and get back to the
user to resolve if there are. Once there are no conflicts left, you
can create a commit with these two parents.

>>> user = repo.default_signature()
>>> user = repo.default_signature
>>> tree = repo.index.write_tree()
>>> new_commit = repo.create_commit('HEAD', user, user, tree,
[repo.head.target, other_branch_tip])

0 comments on commit 120fded

Please sign in to comment.