From 622f322b681faa2292883c115980255e280e5231 Mon Sep 17 00:00:00 2001 From: Catalin Marinas Date: Mon, 14 Feb 2011 17:24:10 +0000 Subject: [PATCH] Remove the assert in CommitData.parse() function When some unknown key/value pairs are found in the commit data, StGit crashes. It looks like this can actually happen with the "encoding: latin1" pair. Signed-off-by: Catalin Marinas --- stgit/lib/git.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/stgit/lib/git.py b/stgit/lib/git.py index 3378728..f5ea965 100644 --- a/stgit/lib/git.py +++ b/stgit/lib/git.py @@ -404,8 +404,6 @@ class CommitData(Immutable, Repr): cd = cd.set_author(Person.parse(value)) elif key == 'committer': cd = cd.set_committer(Person.parse(value)) - else: - assert False assert False class Commit(GitObject): -- 2.11.0