瀏覽代碼

Update NEWS, fix test.

Jelmer Vernooij 11 年之前
父節點
當前提交
e4a3bf0350
共有 2 個文件被更改,包括 5 次插入1 次删除
  1. 4 0
      NEWS
  2. 1 1
      dulwich/tests/test_pack.py

+ 4 - 0
NEWS

@@ -40,6 +40,10 @@
    first. Fixes hang when used against GitHub
    server implementation. (Siddharth Agarwal)
 
+ * DeltaChainIterator: fix a corner case where an object is inflated as an
+   object already in the repository.
+   (Damien Tournoud, #135)
+
  API CHANGES
 
   * Drop support for Python 2.6. (Jelmer Vernooij)

+ 1 - 1
dulwich/tests/test_pack.py

@@ -963,7 +963,7 @@ class DeltaChainIteratorTests(TestCase):
         blob2, = self.store_blobs(['blob2'])
         assert blob.id < blob2.id
 
-        f = StringIO()
+        f = BytesIO()
         entries = build_pack(f, [
           (REF_DELTA, (blob.id, 'blob2')),
           (REF_DELTA, (0, 'blob3')),