=== modified file 'breezy/git/object_store.py'
--- old/breezy/git/object_store.py	2022-07-07 13:03:35 +0000
+++ new/breezy/git/object_store.py	2022-11-01 09:09:11 +0000
@@ -651,7 +651,7 @@
         if len(sha) == 20:
             sha = sha_to_hex(sha)
         obj = self[sha]
-        return (obj.type, obj.as_raw_string())
+        return (obj.type_num, obj.as_raw_string())
 
     def __contains__(self, sha):
         # See if sha is in map

=== modified file 'breezy/git/transportgit.py'
--- old/breezy/git/transportgit.py	2022-09-14 13:52:36 +0000
+++ new/breezy/git/transportgit.py	2022-11-01 09:09:39 +0000
@@ -794,7 +794,7 @@
 
         with self.pack_transport.open_write_stream(
                 "pack-%s.pack" % pack_sha.decode('ascii')) as datafile:
-            entries, data_sum = write_pack_objects(datafile, pack_tuples)
+            entries, data_sum = write_pack_objects(datafile.write, pack_tuples)
         entries = sorted([(k, v[0], v[1]) for (k, v) in entries.items()])
         with self.pack_transport.open_write_stream(
                 "pack-%s.idx" % pack_sha.decode('ascii')) as idxfile:

