瀏覽代碼

Ignore comment in packed-refs file.

Jelmer Vernooij 16 年之前
父節點
當前提交
42a47df690
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      dulwich/repo.py

+ 3 - 1
dulwich/repo.py

@@ -68,8 +68,10 @@ class Tags(object):
 
 def read_packed_refs(f):
     l = f.readline()
-    assert l == "# pack-refs with: peeled \n"
     for l in f.readlines():
+        if l[0] == "#":
+            # Comment
+            continue
         if l[0] == "^":
             # FIXME: Return somehow
             continue