Преглед на файлове

Set _num_type so commit writer stuff works

John Carr преди 16 години
родител
ревизия
e1a8c99a44
променени са 1 файла, в които са добавени 3 реда и са изтрити 0 реда
  1. 3 0
      dulwich/objects.py

+ 3 - 0
dulwich/objects.py

@@ -185,6 +185,7 @@ class Blob(ShaFile):
   """A Git Blob object."""
 
   _type = BLOB_ID
+  _num_type = 3
 
   @property
   def data(self):
@@ -230,6 +231,7 @@ class Tree(ShaFile):
   """A Git tree object"""
 
   _type = TREE_ID
+  _num_type = 2
 
   def __init__(self):
     self._entries = []
@@ -283,6 +285,7 @@ class Commit(ShaFile):
   """A git commit object"""
 
   _type = COMMIT_ID
+  _num_type = 1
 
   @classmethod
   def from_file(cls, filename):