Explorar o código

Ignore comment in packed-refs file.

Jelmer Vernooij %!s(int64=16) %!d(string=hai) anos
pai
achega
42a47df690
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  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