summaryrefslogtreecommitdiff
path: root/lib/git/tree.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/git/tree.py')
-rw-r--r--lib/git/tree.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/git/tree.py b/lib/git/tree.py
index 630fa1fc..59d3af1e 100644
--- a/lib/git/tree.py
+++ b/lib/git/tree.py
@@ -33,7 +33,8 @@ class Tree(LazyMixin):
if obj is not None:
self._contents[obj.name] = obj
- def content_from_string(self, repo, text):
+ @staticmethod
+ def content_from_string(repo, text):
"""
Parse a content item and create the appropriate object