From: Catalin Marinas Date: Mon, 14 Feb 2011 17:24:10 +0000 (+0000) Subject: Remove the assert in CommitData.parse() function X-Git-Url: https://git.distorted.org.uk/~mdw/stgit/commitdiff_plain/refs/heads/origin 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 --- 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):