From: Karl Hasselström Date: Thu, 20 Mar 2008 23:12:10 +0000 (+0000) Subject: Make sure patches with no parents have an empty list of parents X-Git-Tag: v0.15-rc1~268 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/stgit/commitdiff_plain/5b7169c024a96dd56e3e49e9ff5abf89f31593b2 Make sure patches with no parents have an empty list of parents They used to have None instead of an empty list, which was inconsistent. (It went undetected for quite a while because StGit seldom needs to handle initial commits.) Signed-off-by: Karl Hasselström --- diff --git a/stgit/lib/git.py b/stgit/lib/git.py index 50dc4f1..cdfe885 100644 --- a/stgit/lib/git.py +++ b/stgit/lib/git.py @@ -204,7 +204,7 @@ class Commitdata(Repr): ) % (tree, parents, self.author, self.committer, self.message) @classmethod def parse(cls, repository, s): - cd = cls() + cd = cls(parents = []) lines = list(s.splitlines(True)) for i in xrange(len(lines)): line = lines[i].strip()