Blob Blame History Raw
From a24f37197db1b8655baa4439e6807455d50740ce Mon Sep 17 00:00:00 2001
From: "Brenda J. Butler" <bjb@rhino.stuffed.animals>
Date: Fri, 13 Oct 2017 03:06:18 -0400
Subject: [PATCH] recognize the new packed-ref header format

as long as line contains "peeled", accept it
fixes the PackingType of packed-Refs not understood:
# pack-refs with: peeled fully-peeled sorted
problem

(cherry picked from commit 5a358f2cfdc46a99db9e595d7368ecfecba52de0)
---
 git/refs/symbolic.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/git/refs/symbolic.py b/git/refs/symbolic.py
index 8556a65..f3b4e5c 100644
--- a/git/refs/symbolic.py
+++ b/git/refs/symbolic.py
@@ -84,7 +84,7 @@ class SymbolicReference(object):
 				if not line:
 					continue
 				if line.startswith('#'):
-					if line.startswith('# pack-refs with:') and not line.endswith('peeled'):
+					if line.startswith('# pack-refs with:') and 'peeled' not in line:
 						raise TypeError("PackingType of packed-Refs not understood: %r" % line)
 					# END abort if we do not understand the packing scheme
 					continue
-- 
2.15.0